MadTechie Posted September 25, 2009 Share Posted September 25, 2009 Also with multiple file_exists("upload/".$filename1) it would be better to have 1 file_exists("upload/".$filename1) as its own if statement if the other if's inside that block, update all the $HTTP_POST_FILES to $_FILES ($HTTP_POST_FILES is deprecated) use arrays (see mikesta707 post) for extensions and mimes simple code always works better, and is easier to read Link to comment https://forums.phpfreaks.com/topic/175464-solved-get-confused-with-uploaded-file/page/2/#findComment-924898 Share on other sites More sharing options...
robert_gsfame Posted September 26, 2009 Author Share Posted September 26, 2009 i got what is the source of this problem........what Madtechie has just said was right, i have to restrict 3 types at the same time jpeg, pjpeg and jpg but i still check it.... Link to comment https://forums.phpfreaks.com/topic/175464-solved-get-confused-with-uploaded-file/page/2/#findComment-925123 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.