0
votes

I have deploy wordpress multiple site on google app engine and now i want to change uploads folder as google bucket folder where i can upload media. Now the following issue i have ..

Unable to create directory https://console.cloud.google.com/storage/browser/media-wordpress/. Is its parent directory writable by the server? OR Unable to create directory gs://media-wordpress/. Is its parent directory writable by the server?

So how I can make writable for my wordpress site or ananamous users.

Sam

2
In this github issue github.com/GoogleCloudPlatform/php-docs-samples/issues/518 it is suggested to use this wordpress.org/plugins/wp-stateless Please read the issue and try the workaround. Let us know how it goesVictor M Herasme Perez
If you are using App Engine Standard, there are two ways of achieving user uploads. Read this and thisVictor M Herasme Perez

2 Answers

0
votes

You'll need to create the bucket media-wordpress from your Developer Console or the gsutil tool for example as explained here. Once done, you'll be able to reference this bucket in Wordpress with the format https://storage.googleapis.com/media-wordpress/

0
votes

I had the same issue. Exactly:

Unable to create directory 1. Is its parent directory writable by the server?

on image upload. After two days of debugging I dumped exception:

Cannot use ACL API to set object policy when object policies are disabled

found this advice and changed my bucket policy to "individual object permissions" aka "object-level permissions" on Permissions tab.