XUpload - mime type

Message
Author
jcoby
Posts: 3
Joined: Jan 12, 2007 4:51 am

mime type

#1 Postby jcoby » Jan 12, 2007 4:53 am

would it be possible to add support for reporting the file's mime type to the url_post page?

User avatar
PilgrimX182
Posts: 2186
Joined: Mar 22, 2006 1:39 pm

#2 Postby PilgrimX182 » Jan 12, 2007 8:49 am

Yes. I've just implemented MIME type detection. Check it out in upcoming XUpload Pro release.

jcoby
Posts: 3
Joined: Jan 12, 2007 4:51 am

#3 Postby jcoby » Jan 12, 2007 4:17 pm

PilgrimX182 wrote:Yes. I've just implemented MIME type detection. Check it out in upcoming XUpload Pro release.
how long until that's available? could I get a patch for the current pro version?

User avatar
PilgrimX182
Posts: 2186
Joined: Mar 22, 2006 1:39 pm

#4 Postby PilgrimX182 » Jan 15, 2007 8:53 am

Yes. Email us your key and note that you need version with MIME type support. We will send you latest XUpload PRO.

jcoby
Posts: 3
Joined: Jan 12, 2007 4:51 am

#5 Postby jcoby » Jan 16, 2007 2:20 am

PilgrimX182 wrote:Yes. Email us your key and note that you need version with MIME type support. We will send you latest XUpload PRO.
Email sent, thank you.

User avatar
PilgrimX182
Posts: 2186
Joined: Mar 22, 2006 1:39 pm

#6 Postby PilgrimX182 » Jan 16, 2007 6:53 am

Just sent you latest package.

ssanders
Posts: 6
Joined: Mar 06, 2012 4:29 pm

#7 Postby ssanders » Apr 03, 2012 3:34 pm

This is not working properly.

If I rename a file extension, the MIME is always reported as that of the new file extension.

So if I rename a .PDF to .TXT, the MIME is always reported as "text/plain," though the content is a .PDF.

If I check the same file's MIME with PHP, it correctly reports it as "application/pdf."

So the point of checking MIME with XUpload is lost -- XUpload is reporting the MIME by file extensions -- and is potentially a security risk.