Search code examples
file-uploadswfupload

Other ways to check the file size before upload


Is there any other way that I can just check the size of a file before upload? The requirement is if the file exceeded the limit, the form mustn't submit. If it's not, I have to do the ordinary upload using the form and I don't have to exactly upload the file to the server using Flash.


Solution

  • Is there any other way that I can just check the size of a file before upload?

    Not in JavaScript, the file size is not in the DOM.