jQuery.AjaxFileUpload.js icon indicating copy to clipboard operation
jQuery.AjaxFileUpload.js copied to clipboard

Adding maximum file limit feature

Open faheem00 opened this issue 11 years ago • 2 comments

This script is great, except for one limitation - user cannot enter a maximum file size. I have added that functionality. User will input a parameter named maxSize (by default it will be 1024), which will be counted as kilobyte. Then the file size will be compared with user's given size limit. If the file size exceeds the limit, the file is not uploaded and an error message shows.

faheem00 avatar Jan 30 '14 14:01 faheem00

Can you:

  1. Remove the default maxSize
  2. Change validation to if (maxSize && ...) { so it won't complain if there is no maxSize specified
  3. Fix conflicts

jfeldstein avatar May 26 '16 13:05 jfeldstein

Also, please combine #33 into this PR.

jfeldstein avatar May 26 '16 13:05 jfeldstein