[Solved] Unable to upload files on Google Cloud Storage using PHP via Google Compute Engine


For Compute Engine vm instance to have access to Cloud Storage, follow the steps below:

  1. Go to Compute Engine
  2. Click your vm instance
  3. Check Cloud API access scopes at the very bottom.

Note: If it is set to Allow default access, you must change it by the following steps:

  1. Stop your VM and click Edit

  2. Go to Cloud API access scopes

  3. Select the option below:

    A. Allow full access to all Cloud APIs, to have an access to all Cloud API including Cloud Storage.

    B. Set access for each API, only selected Cloud API will have an access.

  4. Save and Start/Resume your vm.

0

solved Unable to upload files on Google Cloud Storage using PHP via Google Compute Engine