psychowolvesbane Posted January 6, 2008 Share Posted January 6, 2008 Hi I want to use a fileupload box on my form, but I want it to specifically target .gif image files when it opens the browser window, how can I do this? Quote Link to comment https://forums.phpfreaks.com/topic/84760-solved-form-file-upload-restriction/ Share on other sites More sharing options...
JJohnsenDK Posted January 6, 2008 Share Posted January 6, 2008 hmm... im not quite sure what you mean, but here is my suggention: if (($_FILES["file"]["type"] == "image/gif")){ echo "ok"; }else{ echo "Has to be gif image"; } Quote Link to comment https://forums.phpfreaks.com/topic/84760-solved-form-file-upload-restriction/#findComment-431937 Share on other sites More sharing options...
psychowolvesbane Posted January 6, 2008 Author Share Posted January 6, 2008 Okay thanks for trying, i'll use that instead. Quote Link to comment https://forums.phpfreaks.com/topic/84760-solved-form-file-upload-restriction/#findComment-431954 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.