in reply to IE vs Netscape problems with Uploading
Assuming things were uploaded okay, which may not always be the case....
Ah... According to Lincoln not all clients return a MIME type, so the result your getting must be because IE doesn't bother, so there is no media type set.
When a file is uploaded the browser usually sends along some information along with it in the format of headers. The information usually includes the MIME content type. Future browsers may send other information as well...
I've had lots of fun recently with upload scripts, sometimes things work on IE, sometimes on Mozilla and sometimes on Opera - if only they would all play the same way. end rant..
If you need to know the meida-type you can use the LWP::MediaTypes (which just looks at the extension really), or the File::MMagic which looks for magic numbers in the file and makes a good guess.
Hope this is helpful...
|
|---|