Validate File uploads

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

Is there anyway to validate file uploads? For example set a max file size or set acceptable file extensions for uploading?

Hey there,

there is a max_size parameter to limit the upload file size. Read about it here: http://transloadit.com/docs/authentication

To validate file extensions you can examine the contents of the input field prior to the upload with jQuery for example.

Kind regards,
Tim

Closing this.