Set max file size

Archived from the Transloadit support forum. Originally posted on April 15, 2011; details may be outdated, see our docs for current behavior. Original thread

I am only using picture resize

How can I define the max file for an image to be uploaded?
Do you have a server side and client side check? (it would be great if the jQuery plugin could check the size using HTML5, http://stackoverflow.com/questions/4112575/client-checking-file-size-using-html5)

I want to limit the user to an upload of 2MB

We currently don’t offer limiting the size of individual files, but it’s something we’ll support in the future. For now you can probably inspect the input.files array which in some browsers will be available for the onChange event of the file input. If it is, the files should contain a size property or similar.

HTH, Felix

Thanks for the client-side tip, looking forward to your update on the server-side