Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

App Engine Blobstore - What can I do to limit the size of a file that a user can upload?

What can I do to limit the size of a file that can be uploaded? I know I can limit it client side with SWFUpload, but how can I limit it server side?

How do I protect against someone uploading a 1GB file and eating up my quota?

like image 435
Kyle Avatar asked Aug 05 '10 19:08

Kyle


1 Answers

App Engine 1.5.4 SDK introduced an option to specify a limit on your blob upload size.

See maxUploadSizeBytes and maxUploadSizeBytesPerBlob of the UploadOptions class.

like image 167
systempuntoout Avatar answered Oct 04 '22 01:10

systempuntoout