Is it correct that “Developers have read-only access to the filesystem on App Engine”?

谁说我不能喝 提交于 2019-12-24 16:33:58

问题


According to this Wikipedia article on Google App Engine:

Developers have read-only access to the filesystem on App Engine.

I have heard of App Engine apps that allow uploads and Google also sells additional storage - if so, wouldn't this statement appear to be incorrect?


回答1:


No.

Those apps would likely store the uploaded data into the store directly rather than the filesystem.

The additional storage is not necessarily in the filesystem but in the storage itself.

From this Google App Engine page:

An App Engine application cannot [...] write to the filesystem. Applications must use the App Engine datastore for storing persistent data. Reading from the filesystem is allowed




回答2:


Your app cannot write to the file system. Apps that allow uploads store the uploaded documents/data in the database.




回答3:


Check out the Blob property, such as in this tutorial for storing images:

http://code.google.com/appengine/articles/images.html

There are also libraries for splitting a large file into pieces for storage as Blobs and put them back together again.



来源:https://stackoverflow.com/questions/1462055/is-it-correct-that-developers-have-read-only-access-to-the-filesystem-on-app-en

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!