Go back to previous topic
Forum name2GNT Site/Forum Questions
Topic subjectRE: Problem with Image uploading
Topic URLhttp://forums.2gnt.com/dcboard.php?az=show_topic&forum=53&topic_id=1114&mesg_id=1171
1171, RE: Problem with Image uploading
Posted by DarkOne, Dec-31-69 06:00 PM
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") {

I generated this page in 0.010252952575684 seconds, executing 6 queries.