Upload files to appspot.com

1,040 views
Skip to first unread message

Fabio Gonçalves

unread,
Mar 19, 2017, 4:23:39 PM3/19/17
to Google App Engine
Hi, in former time I used the Google App Engine to upload my files for my website. 
However it won't work anymore. 
So I wonder, if there is a more easy way to upload some files to my homepage fogo-guide.appspot.com
I just want to replace some files.
How to do?

Alex (Cloud Platform Support)

unread,
Mar 21, 2017, 12:38:30 PM3/21/17
to Google App Engine

Hi Fabio,


In order to help you further, I will need you to provide a additional details concerning which types of files are you looking to upload?


In case you are looking to upload pictures (jpeg file format), you would need to first download the source code of your app using this download_app command. Then you will be able to update these images inside the source code and re-upload the app to your App Engine instance. In fact, it does seem that your images are stored along your application code when looking at their “Request URLs”, however let me know if you are expecting to upload your files elsewhere.


Alternatively, you may be interested modifying the underlying infrastructure of your app and storing different types of files directly on Cloud Storage. Then, serve them via your App Engine instance as described on this Reading and Writing to Google Cloud Storage guide.

Fabio Gonçalves

unread,
Mar 22, 2017, 5:01:30 PM3/22/17
to Google App Engine
Hi,
thanks for helping.
I only have to change pure html and JPEG's. The JPEG's are stored in a separate folder.
The Cloud Storage is not a possibility for me, because it will be on charge and I have less money.

Is there no way via ftp or something like that to put and get files?

Nicholas (Google Cloud Support)

unread,
Mar 23, 2017, 9:25:59 AM3/23/17
to Google App Engine
Files uploaded with an App Engine application cannot be downloaded, uploaded or modified via FTP.  One of the reasons for this is that they may not all reside in one place given App Engine's scalable design.  To perform some tasks like deleting static resources, adding them or modifying them, here are your choices:

Deleting static resources
  • Download the the completing application service/module to your local machine using the download_app command Alex described above
  • Delete the resources locally, making sure to update all references to them in your app.yaml and HTML files
  • Deploy your application service/module again, now without the resources you deleted
Adding static resources
  • Download service as above
  • Add new static resources, adding references to them in app.yaml and HTML files
  • Deploy again as above
Modifying static resources
  • Download service as above
  • Modify resources, updating references to them in app.yaml and HTML files
  • Deploy again as above
I have this information is helpful.

Josh Moore

unread,
Mar 27, 2017, 12:40:52 PM3/27/17
to google-a...@googlegroups.com
Also note that each AppEngine app has a free quota of 5 GB for Cloud Storage via its "Default Bucket," as documented here.  You won't have to worry about a charge, unless you're storing over 5 gigabytes of JPEGs.

--
You received this message because you are subscribed to the Google Groups "Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-appengine+unsubscribe@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at https://groups.google.com/group/google-appengine.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/fc2263ab-b490-4e40-b16c-b2fcba431ef6%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--

Josh Moore | Cloud Solutions Engineer | josh...@google.com | 

Reply all
Reply to author
Forward
0 new messages