The above code assumes a few things:
-
YOUR-BUCKET is a bucket that you own.
-
You have set the ACL on the bucket with the following command:
gsutil setacl public-read-write gs://upload-test
-
The "key" is dynamically generated
The above operation results in a file being created at: http://commondatastorage.googleapis.com/upload-test/someAmazingUniqueKey
-Nate (nate at grapepudding.com)
My markup is valid now, thanks!