Title: Google Cloud Storage plugin
Author: Google
Published: <strong>2017年2月25日</strong>
Last modified: 2020年9月2日

---

プラグインを検索

このプラグインは **WordPress の最新3回のメジャーリリースに対してテストされていま
せん**。もうメンテナンスやサポートがされていないかもしれず、最新バージョンの WordPress
で使用した場合は互換性の問題が発生する可能性があります。

![](https://ps.w.org/gcs/assets/icon-256x256.png?rev=1604875)

# Google Cloud Storage plugin

 作者: [Google](https://profiles.wordpress.org/google/)

[ダウンロード](https://downloads.wordpress.org/plugin/gcs.0.1.6.zip)

 * [詳細](https://ja.wordpress.org/plugins/gcs/#description)
 * [レビュー](https://ja.wordpress.org/plugins/gcs/#reviews)
 *  [インストール](https://ja.wordpress.org/plugins/gcs/#installation)
 * [開発](https://ja.wordpress.org/plugins/gcs/#developers)

 [サポート](https://wordpress.org/support/plugin/gcs/)

## 説明

Google Cloud Storageプラグインを使用すると、メディアファイルをGoogle Cloud Storage
バケットにアップロードできます。

## インストール

 1. Download the plugin and place it in your `/wp-content/plugins/` directory.
 2. Enable this plugin in the WordPress admin UI,
 3. Configure your Google Cloud Storage bucket in the plugin setting
     UI.
 4. In Google Cloud Console, set the default acl of the bucket so that
     allUsers can
    read.

Depending on your environment, you may need to configure a Google
 Service Account
to call the APIs.

To run this plugin on **Google App Engine for PHP 7.2**, it will work
 without additional
configuration.

To run this plugin on **Google Compute Engine** or **App Engine Flexible**,
 you
will need to do the following:

 * Visit Cloud Console, go to `Compute` -> `instances` and select
    the instance 
   where WordPress is running.
 * Stop the instance.
 * Once the instance has stopped, click **Edit** and you can now
    modify the scopes
   under **Cloud API access scopes**. Change the Storage scope from **Read Only**
   to **Full**.

このプラグインをGoogle Cloud Platform以外で実行する場合は、サービスアカウントを次
のように設定する必要があります :

 * Cloud Consoleにアクセスし、`IAM & Admin` -> `Service accounts`へ移動、`Storage
   Object Admin` 権限を持つサービスアカウントを作成し、jsonキーファイルをダウンロード
   します。
 * jsonキーファイルをホスティングサーバーにアップロードします。 公開されているディレクトリ
   には置かないでください。
 * wp-config.phpに次の行を追加します（ファイルパスを実際のパスに置き換えてください）。
 * `putenv('GOOGLE_APPLICATION_CREDENTIALS=/secure-place/my-service-account.json');`

## FAQ

質問． `No project ID was provided, and we were unable to detect a default project
ID`（プロジェクトIDが指定されていないため、プラグインがクラッシュしデフォルトプロジェクト
IDを検出できませんでした）と表示されました。何が問題ですか？

回答．「インストール」セクションの「サービスアカウントの設定」を参照してください。

質問．Google Cloud Storage バケットのデフォルトアクセス制御リスト（ACL）を設定する
にはどうすればよいですか？

回答．: https://wordpress.org/support/topic/google-storage-not-work/page/2/#post-
8897852 を参照してください。

## 評価

![](https://secure.gravatar.com/avatar/4d924e3c1c293b5e9de4bcc3c9316634b9ab07f4493f7673cc89656b72d690f5?
s=60&d=retro&r=g)

### 󠀁[Close but no cigar](https://wordpress.org/support/topic/close-but-no-cigar-12/)󠁿

 [Chef Tech](https://profiles.wordpress.org/patrouch/) 2023年4月14日

I came across a major glitch when trying to export products from Woocommerce. The
export returns an empty csv file (empty except for the header rows) unless I deactivate
this plugin.

![](https://secure.gravatar.com/avatar/923fd335cd962d29489474ec45ea33598bc16c98040fd542a304a01fdadef8bf?
s=60&d=retro&r=g)

### 󠀁[It Works!](https://wordpress.org/support/topic/it-works-2265/)󠁿

 [dioxunil](https://profiles.wordpress.org/dioxunil/) 2022年4月10日

Just read what is written in the readme.txt

![](https://secure.gravatar.com/avatar/1c351b2428890f1e9748acedb085d547353119e2075f96401183c601dcfc7382?
s=60&d=retro&r=g)

### 󠀁[major problems](https://wordpress.org/support/topic/major-problems-11/)󠁿

 [bart2016](https://profiles.wordpress.org/bart2016/) 2021年6月10日

it works, but with major problems. by default, it changes the media storage of WP
to google storage, but after this plugin is installed, user cannot install any other
extensions, because it will try to install into gs://xxx

![](https://secure.gravatar.com/avatar/3039c023ff16191649c7cd9156fcdf7262a14f7127cf41496c3a9a39ad1c1280?
s=60&d=retro&r=g)

### 󠀁[not working](https://wordpress.org/support/topic/not-working-3314/)󠁿

 [aelsharawi](https://profiles.wordpress.org/aelsharawi/) 2020年7月1日

Google…you should not do that! poor insturction, not working either way API or Json
file, maybe as I am under cloudflare? don't know, what about the compatibility with
other cdn plugins?

![](https://secure.gravatar.com/avatar/b76225f409e42b614d01e1788da075062004de1026d75051db8664e071199cc2?
s=60&d=retro&r=g)

### 󠀁[Useless in PHP 7.2 / Inútil en PHP 7.2](https://wordpress.org/support/topic/useless-in-php-7-2-inutil-en-php-7-2/)󠁿

 [neoacevedo](https://profiles.wordpress.org/neoacevedo/) 2018年7月20日

Simply it isn't activated on PHP7.2 so you HAVE TO use PHP < 7.1 in order to activate
and use it.

![](https://secure.gravatar.com/avatar/fc71ae7a02caef8011ea21629998df6ca3f968c869ac2fa7ccaf181437f3f10b?
s=60&d=retro&r=g)

### 󠀁[Works great](https://wordpress.org/support/topic/works-great-5080/)󠁿

 [Marco](https://profiles.wordpress.org/marcoherzog/) 2018年6月19日

Maybe the instructions should include the updated wording: Visit Cloud Console, 
go to IAM & Admin -> Service accounts and create a service account with Storage 
Admin role and download the json key file. And keep in mind to make the bucket publicly
available: https://cloud.google.com/storage/docs/access-control/making-data-public#
buckets

 [ 7件のレビューをすべて表示 ](https://wordpress.org/support/plugin/gcs/reviews/)

## 貢献者と開発者

Google Cloud Storage plugin はオープンソースソフトウェアです。以下の人々がこのプラグ
インに貢献しています。

貢献者

 *   [ Google ](https://profiles.wordpress.org/google/)

[“Google Cloud Storage plugin” をあなたの言語に翻訳しましょう。](https://translate.wordpress.org/projects/wp-plugins/gcs)

### 開発に興味がありますか ?

[コードを閲覧](https://plugins.trac.wordpress.org/browser/gcs/)するか、[SVN リポジトリ](https://plugins.svn.wordpress.org/gcs/)
をチェックするか、[開発ログ](https://plugins.trac.wordpress.org/log/gcs/)を [RSS](https://plugins.trac.wordpress.org/log/gcs/?limit=100&mode=stop_on_copy&format=rss)
で購読してみてください。

## 変更履歴

#### 0.1.6

 * Updates all dependencies

#### 0.1.5

 * Updates all dependencies
 * Adds HTTP header for tracking WordPress and plugin version

#### 0.1.4

 * Uses the most recent release of the Google Cloud Storage client library
 * Updates all dependencies

#### 0.1.3

 * Readmeにサービスアカウントを設定するためのセクションを追加
 * Readmeによくある質問セクションが追加されました
 * 依存関係を更新しました

#### 0.1.2

 * Readmeに “テスト済み”フィールドを追加しました。

#### 0.1.1

 * Zip ファイルに vendor ディレクトリを同梱

#### 0.1

 * 初回リリース

## メタ

 *  バージョン **0.1.6**
 *  最終更新日 **6年前**
 *  有効インストール数 **300+**
 *  検証済み最新バージョン: **5.5.22**
 *  PHP バージョン ** 5.5またはそれ以降 **
 *  言語
 * [English (US)](https://wordpress.org/plugins/gcs/)
 * タグ
 * [google](https://ja.wordpress.org/plugins/tags/google/)[google cloud storage](https://ja.wordpress.org/plugins/tags/google-cloud-storage/)
 *  [詳細を表示](https://ja.wordpress.org/plugins/gcs/advanced/)

## 評価

 5つ星中2.7つ星

 *  [  2 5-星レビュー     ](https://wordpress.org/support/plugin/gcs/reviews/?filter=5)
 *  [  1 4-星レビュー     ](https://wordpress.org/support/plugin/gcs/reviews/?filter=4)
 *  [  0 3-星レビュー     ](https://wordpress.org/support/plugin/gcs/reviews/?filter=3)
 *  [  1 2-星レビュー     ](https://wordpress.org/support/plugin/gcs/reviews/?filter=2)
 *  [  3 1-星レビュー     ](https://wordpress.org/support/plugin/gcs/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/gcs/reviews/#new-post)

[すべてのレビューを見る](https://wordpress.org/support/plugin/gcs/reviews/)

## 貢献者

 *   [ Google ](https://profiles.wordpress.org/google/)

## サポート

意見や質問がありますか ?

 [サポートフォーラムを表示](https://wordpress.org/support/plugin/gcs/)