本文介绍了Google应用程序引擎,最大静态文件数?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在google应用程序引擎中开发一个应用程序,该应用程序将具有用户个人资料类型的功能.我在浏览Google App的在线教程时发现,静态文件(应用程序文件和静态文件)的最大数量不应超过3000.我担心当用户数量增加时,用户是否能够上传其图像.此限制仅适用于免费配额还是仅在计费后才适用.在文档中,它是免费配额之外的附加限制.

I am developing an application in google application engine which would have a user profiles kind of feature. I was going through the Google App's online tutorial where I found that the maximum number of static files (app files and static files) should not exceed 3000. I am afraid whether the user's would be able to upload their images when the number of users increase. Is this limitation for the Free Quota only or its even after billing. In the document, its mentioned as the additional limit than the Free Quota.

请提出建议.

谢谢.

推荐答案

欢迎使用堆栈溢出!

App Engine的局限性之一是您不能从应用程序直接写入文件系统.静态文件是诸如HTML,CSS,javascript和图像之类的东西,它们对于您的应用程序是全局的,并且在部署时会手动上传.它们被上传到与处理动态内容的服务器不同的服务器上,并从其中提供服务.

One of the limitations in App Engine is that you cannot write directly to the filesystem from your app. Static files would be things like HTML, CSS, javascript and images that are global to your application, and get uploaded manually when you deploy. They are uploaded to and served from different servers than the ones that handle dynamic content.

由于无法从应用程序写入文件系统,因此用户上传的文件必须作为blob保存到数据存储中.这些不被视为静态文件.正如其他人提到的那样,您可以使用S3或Blobstore API,但是这两个都需要付费.使用免费配额,每个实体最多可以使用1MB,每个HTTP请求和响应最多可以使用10MB.通过将标准实体与BlobProperty结合使用,您可以轻松地存储和提供动态上传的文件,最大可达1MB,如果您想看中并在多个实体的切片中存储Blob,则可以存储10MB.

Since you can't write to the filesystem from your app, files uploaded by users must be saved to the datastore as blobs. These are not considered static files. As others have mentioned, you can use S3 or the Blobstore API, however both of these require billing. With the free quotas, each entity can be up to 1MB, and each HTTP request and response can be up to 10MB. Using standard entities with a BlobProperty, you can easily store and serve dynamically uploaded files up to 1MB, or 10MB if you want to get fancy and store your blob in slices across multiple entities.

这篇关于Google应用程序引擎,最大静态文件数?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-30 06:21