XUpload - mime type
- PilgrimX182
- Posts: 2186
- Joined: Mar 22, 2006 1:39 pm
- PilgrimX182
- Posts: 2186
- Joined: Mar 22, 2006 1:39 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.
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.