Hi all,
I have a form that allows users to upload files to the server. How do I check, either on the client side before upload OR server side after upload, if the file is valid?
For example, say a user selects file to upload but manually changes the file name in the input box to one that doesn't exist on their drive. What happens is that a new file (of size 0 kb) with that name is created on the server. How do I prevent this? The only way I could think of was to check the individual file size (which is 0 if it's an invalid file), but it doesn't look like aspSmartUpload allows this if I'm uploading multiple files from one form. PLEASE HELP!!!
I have a form that allows users to upload files to the server. How do I check, either on the client side before upload OR server side after upload, if the file is valid?
For example, say a user selects file to upload but manually changes the file name in the input box to one that doesn't exist on their drive. What happens is that a new file (of size 0 kb) with that name is created on the server. How do I prevent this? The only way I could think of was to check the individual file size (which is 0 if it's an invalid file), but it doesn't look like aspSmartUpload allows this if I'm uploading multiple files from one form. PLEASE HELP!!!