JS for FileField Upload

wxdqz

New Member
I am looking to search the extensions of a FileField upload to notify user if they are trying to upload an incorrect file type. The Script would check the extension to see if it was a .gif, .jpg. or .pdf before allowing Form to be processed. If it wer anything else, it would alert the user and stop the process. Is there a way to check the FileSize as well, or will I have to do both of these functions after the form is submitted?

Any and all suggestions would be appreciated
 
Back
Top