pouncer Posted March 6, 2007 Share Posted March 6, 2007 <input type="hidden" name="MAX_FILE_SIZE" value="1000000" /> <input name="imageupload" type="file" size="70"> How do I actually check if the user actualled clicked the browse button and selected a file? because, before i hit the submit button i want to check if the user actually select a file to upload Link to comment https://forums.phpfreaks.com/topic/41527-checking-file-submit-box/ Share on other sites More sharing options...
jcbarr Posted March 6, 2007 Share Posted March 6, 2007 Do you mean before the form is actually submitted? If you want to do it before the form is submitted then you will more then likely have to use javascript to disable the rest of the form inputs until the above mentioned input has a value. Link to comment https://forums.phpfreaks.com/topic/41527-checking-file-submit-box/#findComment-201182 Share on other sites More sharing options...
pouncer Posted March 6, 2007 Author Share Posted March 6, 2007 Do you mean before the form is actually submitted? If you want to do it before the form is submitted then you will more then likely have to use javascript to disable the rest of the form inputs until the above mentioned input has a value. hmmm, yea i wanted to check it before i hit the submit. hmm, sounds a bit complex to me. Link to comment https://forums.phpfreaks.com/topic/41527-checking-file-submit-box/#findComment-201185 Share on other sites More sharing options...
jcbarr Posted March 6, 2007 Share Posted March 6, 2007 Search for javascript form functions or manipulations on google and you will find a ton of sites that can give you a run down of how to do what you want. They aren't that complicated most of the time. Link to comment https://forums.phpfreaks.com/topic/41527-checking-file-submit-box/#findComment-201186 Share on other sites More sharing options...
pouncer Posted March 6, 2007 Author Share Posted March 6, 2007 isnt there any way to just echo the directory name then, in the file browse box, when i click the submit button? Link to comment https://forums.phpfreaks.com/topic/41527-checking-file-submit-box/#findComment-201224 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.