Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Unable to uplaod file from my Windows Desktop to Cloud Storage bucket

I have a png file that i wish to upload from my Windows Desktop location to Google Cloud Storage bucket.

I am able to do that using the Console. However, i am unable to do it via gcloud:

 

gcloud storage cp Desktop/Gandalf.png gs://cat-bucket-test

 

The error that i am getting is as follows:

 

Completed files 0 | 0B
←[1;31mERROR:←[0m (gcloud.storage.cp) The following URLs matched no objects or files:
-Desktop/Gandalf.png

 

I have referred to the following resource:

 
Can you please help me what i am missing here.
 
Solved Solved
1 2 416
1 ACCEPTED SOLUTION

Hello @mountaincode2  ,Welcome on Google Cloud Community.

Did you've tried to provide Absolute path for your file, instead of relative ? 
like: C:\Documents\Newsletters\Summer2018.pdf 

 

gcloud storage cp C:\Documents\Newsletters\Summer2018.pdf gs://test-bucket-123

--
cheers,
DamianS
LinkedIn medium.com Cloudskillsboost

View solution in original post