Uploading Files to Google Cloud Storage

Uploading Files to Google Cloud Storage

let’s look at how can upload files to
Google Cloud storage
I’ll be covering three ways in this
video. Using the web UI
Using the Command Line, and programmatically. If you
stick around till the end
I’ll also show you how to get five
GB of free space. The first thing
we need to do to use cloud storage
is to create a bucket. you can of a
bucket like a collection of files and folders
first go to your Google Developer Console
and then select the project you’re working in. Then
go to the storage section in click cloud
and then click storage browsers. here
you can click Create a bucket. give the
bucket a unique name
and then click Create. after a few
the new empty bucket is created
let’s look at how to upload files using
the web UI
go back to the storage browsers and select the bucket we just created
you can click upload files to select files and folders from a file picker
my favorite is a drag and drop features
you can just drag and drop files and
folders straight into the web UI
this is an easy way to quickly upload
files from any computer
let’s look at how to use the Google
Cloud SDK to upload files
if you don’t have the Google Cloud SDK
installed on your computer
see the link in the description for how
to install it.
Let’s open a command line in the folder with the files we want to upload.
I want to upload file
and folder to cloud storage. to upload file
first type in gsutil, then
CP then the name of the file
and finally the name of our cloud storage bucket
if we refresh our Google Developer
we can see that new file has been
Now let’s copy folder. type in gsutil
then -m for multicore then CP
then -r for recursive, then the name
the folder
and then the name the bucket
if we refresh our Google developer console
We can see the new folder with all the
files inside of it
now let’s see how can access Google
Cloud Storage in code
the first option are the gcloud
these are idiomatic open source libraries are
available for Java
Python, Go
node.js and Ruby. simply search for
dash name the language you’ll find it on
github there’s also the Google API’s
this library is auto-generated for a ton of different languages
for a ton of different Google Products. it might look a little weird sometimes
but it works great. finally you can use
the raw
JSON REST API if you want to. Check the description
to find links to both these APIs. In
we looked at how can use the web UI, the command line
and code to upload files to Google Cloud
now for what y’all been looking for, how to get the free GB of space
first go to App Engine dot Google dot
and then select the project you’re
working on go to the administration
section on the left sidebar
and click on application settings scroll
to the cloud integration section and
then click
if you go back to our Google Developer
Console hit refresh
we can see that we have a new bucket and
this bucket give us five GB of
free space
Have fun and see you next time!

Subtitles End: http://onlinestorewebpro.com

Spread the love

Leave a Reply

Your email address will not be published. Required fields are marked *

Google Analytics Alternative