Welcome to HBH! If you have tried to register and didn't get a verification email, please using the following link to resend the verification email.
php upload problem (IE compatibility)
i did a image upload website http://zokio.zapto.org:8080/site/imagehosting/, the upload script work fine with firefox, but when people try to upload a .jpg file, it says: wrong file type… but when they try with Firefox, it work fine, so can someone help me for my probleme? heres is a part of my script, if it can help!
array('image/gif',
'image/bmp',
'image/jpeg',
'application/x-shockwave-flash',
'application/zip',
'application/x-zip',
'application/x-zip-compressed',
'application/octet-stream',
'application/x-compress',
'application/x-compressed',
'multipart/x-zip',
'image/photoshop',
'image/x-photoshop',
'image/psd',
'application/photoshop',
'application/psd',
'zz-application/zz-winassoc-psd',
'application/tga',
'application/x-tga',
'application/x-targa',
'image/tga',
'image/x-tga',
'image/targa',
'image/x-targa',
'image/png',
'image/tif',
'image/x-tif',
'image/tiff',
'image/x-tiff',
'application/tif',
'application/x-tif',
'application/tiff',
'application/x-tiff',
'image/ico',
'image/x-icon',
'application/ico',
'application/x-ico',
'application/x-win-bitmap',
'image/x-win-bitmap',
'application/octet-stream',
'text/plain',
'application/txt',
'browser/internal',
'text/anytext',
'widetext/plain',
'image/jpg',
'widetext/paragraph' );```
hmm…I wonder if there would be a way to spoof this? I mean if the browser sends it, you might be able to upload a different filetype and make the browser say it's image/jpeg or whatever. then maybe you could put, say, php files on an image hosting site. just a thought. does anybody know if it could work?