0

The download path works locally however once deployed GAE shows path error and I want user to have a simple browser download file. Right now what I do is store it in a /tmp folder than download. Has anyone done a file download from gcp bucket once the app is deployed in standard environment using python3.

Serhii Rohoza
  • 1,424
  • 2
  • 5
  • 15
Dyuti
  • 1

1 Answers1

0

While you can write to the /tmp folder as stated here, keep in mind that App Engine creates and deletes containers for you dynamically. As such it is against best practices to write anything to the disk.

For these use cases, what is recommended it for you to write and read directly from a GCS bucket as mentioned on this document.

I hope you find this information useful!

rsalinas
  • 156
  • 3