Anyone ever have a problem with uploading .GIFs from MS Paint? I'm working on a site allowing JPEG and GIF uploads and I found out the MS Paint's JPEG images are of MIME type image/pjpeg and not image/jpeg. So I thought to check their .GIF format as well. However, when I try to upload the .GIF file from MS Paint with IE, I get a page cannot be displayed error. Try uploading the same .GIF with FireFox and had no problems. Anyone else ever encounter this? I was able to reproduce the error with different .GIFs and multiple times so it seems systemic and not a fluke.
David Goldfeder
Web and Database Specialist
University of Illinois, Urbana-Champaign
Department of Mechanical and Industrial Engineering
If you are allowing jpegs you do need to allow both image/pjpeg and image/jpeg as as feyd said this isn't a MS Paint thing but an MS thing. Did you check what filetype the GIFs where being shown as when you tried to upload them?
If it's a GIF from adobe photoshop or macromedia fireworks it works fine and shows as type image/gif. If it's a GIF from MS Paint, I can't even get the page to parse -- says it cannot be displayed -- so I don't know what type it is.
since I don't have MSPaint on my system, can you post this file somewhere so I can look at it? Also, could you post your form/upload script(s), so I can test it against your functionality?
If you disperse of the file upload stuff, put the file on your server and use something like [php_man]mime_content_type[/php_man]() on it what does it report?