gray_15
gray_15

Reputation: 471

Creation of large files in Google App Engine flexible using PHP

I have project that needs to output hundreds of photos from one template file, compress them into a .zip file, and push them to the customer's browser. After that, the .zip file can be deleted.

Google App Engine (PHP) does not allow you to write files like you would in a standard web server.

How can this be accomplished with GAE flexible?

Upvotes: 0

Views: 106

Answers (1)

Andrei Tigau
Andrei Tigau

Reputation: 2058

As you have already known, App Engine flexible does not allow you to write files on the system even if it runs on a VM. The reason is that it runs within more Docker containers and you will not have the guarantee that you will find the file.

An alternative for this is to change a bit your workflow and to use Cloud Storage as an intermediate. You can send the photos directly to Cloud Storage, and the users will be able to download them directly from Cloud Storage. Here you have a guide on how to achieve this from App Engine flex for PHP.

Upvotes: 1

Related Questions