How can I validate if the user has selected a file to upload?
Edit: bumped
I got this from some forum. I hope it will be useful for you.