#1171, "RE: Problem with Image uploading" In response to In response to 12 Jan-11-08 10:34 AM by DarkOne
Originally posted by juan was there ever a resolution for this? Originally tried a jpg saved to my machine from here: h ttp://i87.photobucket.com/albums/k134/ez1_03/DSC00096.jpg in this thread: http://forums.2gnt.com/dcboard.php?az=show_topic&forum=60&topic_id=30276 I then tried converting it to a PNG (MS Paintz, yo), but still getting an error when attempting to upload:
"File must be a jpg, gif, bmp, png, txt, pdf, doc or msq! Failed to upload file CypressPD_01.png Reason: 0 Filetype: image/x-png"
I added some additional output code so i could try to figure it out, but you're the first person that's reported anything since.
Wonder if i have x-png as a mime type in the file check...
*edit* I didn't... try now.
else if ($HTTP_POST_FILES<$element><'type'> =="image/jpeg" OR $HTTP_POST_FILES<$element><'type'> =="image/jpg" OR $HTTP_POST_FILES<$element><'type'> =="image/gif" OR $HTTP_POST_FILES<$element><'type'> =="image/bmp" OR $HTTP_POST_FILES<$element><'type'> =="image/png" OR $HTTP_POST_FILES<$element><'type'> =="image/x-png") {
______________________________ If a sentence found online has 35% misspellings or greater and includes at least two racially charged expletives, chances are it is a YouTube comment.
'95 Eclipse TurboGS (garage deco) '95 TSi AWD (restoring a survivor) '97 Talon ESi-T (poor impulse control) '99 Eclipse RS-T (daily beater) '13 Evo X (mostly stock) '17 Sienna (Middle Aged Dad Mobile)