How can I limit the size of files uploaded by my users?

Use the max_size parameter. For details, see the authentication page. The file size is checked as soon as the upload is started and if it exceeds the maximum size, the entire upload process is canceled – even if it contains files that do not exceed the max_size limitation.

If you want to just ignore the files that exceed a certain size, but process all others, then please use our file filtering capabilities.

See also:

Why am I seeing more GB charged than my input files? How do I enable multi-file upload? How are my Amazon S3 credentials protected?