RE: [PHP] Encoding for uploaded files

2004-01-29 Thread memoimyself
On 29 Jan 2004 at 10:47, craig wrote: > specifally, you want: $_FILES['userfile']['type'] = The mime type of > the file, if the browser provided this information. An example would > be "image/gif". That's basically it and will work for common file types. However, it's the user's browser, not P

RE: [PHP] Encoding for uploaded files

2004-01-29 Thread craig
> I don't know if you are right here, or maybe I don't understood > correctly... the file type is actually the encoding of the > file? If a > file type is text/plain, where is the encoding format? ISO-8859-1? > > Puzzled! sorry, I misunderstood the question. I have no idea of how to get the

Re: [PHP] Encoding for uploaded files

2004-01-29 Thread Cesar Cordovez
I don't know if you are right here, or maybe I don't understood correctly... the file type is actually the encoding of the file? If a file type is text/plain, where is the encoding format? ISO-8859-1? Puzzled! Cesar craig wrote: check out http://www.php.net/manual/en/features.file-upload.ph

RE: [PHP] Encoding for uploaded files

2004-01-29 Thread craig
check out http://www.php.net/manual/en/features.file-upload.php, it spells out the entire upload process specifally, you want: $_FILES['userfile']['type'] = The mime type of the file, if the browser provided this information. An example would be "image/gif". -Craig > -Original Message