简体   繁体   中英

Google Cloud bucket permission issue

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

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/

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM