Validate File uploads

Started by Adam2 replies11 views
AdamOriginal post
#1

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?

tim-kos
#2

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

tim-kos
#3

Closing this.