Java – App Engine blobstore – what can I do to limit the size of files that users can upload?

What can I do to limit the size of files that can be uploaded? I know I can use swfupload to limit its client, but how to limit its server?

How can I prevent someone from uploading 1GB files and occupying my quota?

Solution

App Engine 1.5. The SDK introduces an option to specify the limit of blob upload size

See maxuploadsizebytes and maxuploadsizebytsperblob of the uploadoptions class

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>