bucket

gsutil: Can't touch a file with brackets in the name

杀马特。学长 韩版系。学妹 提交于 2019-12-12 03:24:11
问题 $ gsutil du -sh gs://test123/ CommandException: Cloud folder gs://test123/testfile[1994]/ contains a wildcard; gsutil does not currently support objects with wildcards in their name. $ gsutil mv gs://test123/testfile[1994]/ gs://test123/testfile_1994/ CommandException: Cloud folder gs://test123/testfile[1994]/ contains a wildcard; gsutil does not currently support objects with wildcards in their name. $ gsutil mv "gs://test123/testfile\[1994\]/" gs://test123/testfile_1994/ CommandException:

Image file successfully uploaded using a Google App Engine application does not exist in bucket

孤街浪徒 提交于 2019-12-12 01:54:05
问题 I have the following code: I create the application specific upload URL, using the method CloudStorageTools::createUploadUrl() as follows: require_once 'google/appengine/api/cloud_storage /CloudStorageTools.php'; use google\appengine\api\cloud_storage\CloudStorageTools; $options = [ 'gs_bucket_name' => 'myuserpics' ]; $upload_url = CloudStorageTools::createUploadUrl('/upload_handler.php', $options); I Use the above URL as the action for the form I use to accept uploads, as follows: <form

Amazon S3 changing object permissions retroactively

微笑、不失礼 提交于 2019-12-11 07:33:51
问题 I have a current S3 bucket with existing files. The bucket was originally a public bucket, I changed its permissions to be private, but I already have objects that were uploaded and have public read CannedACL permissions. How do I change the permissions on all of the uploaded objects to private CannedACL? 回答1: You can use the AWS Command-Line Interface (CLI) to change the permissions in-bulk. You will use the aws s3 cp command. While this is a copy command, it can also be used to copy files

Class 'Google\Cloud\Storage\StorageClient' not found

走远了吗. 提交于 2019-12-11 06:46:59
问题 use Google\Cloud\Storage\StorageClient; require __DIR__ . '\vendor\autoload.php'; $storage = new StorageClient(); That as my code.Here I have installed composer on windows and getting following error:- Fatal error: Class 'Google\Cloud\StorageClient' not found in C:\xampp\htdocs\fingertips\application\controllers\teacher.php on line 214 And even after running commands with composer to use google cloud api's, then also nothing is happening. On cmd, when I am running this, "composer require

URL Presigned AMZON S3

前提是你 提交于 2019-12-11 04:38:38
问题 I'm not able to make url Presigned to my subdomain pointed to my bucket, URL AMAZON - /mybucket/logo.jpg OR MY SUBDOMAIN - / logo.jpg Works correctly But when file is private, I need to generate permission, so it would look like this, but when I put the access key in the subdomain it does not work. URL ORIGINAL AMAZON SUBDOMAIN + KEY, DOES NOT WORK my php code $cmd = $client->getCommand('GetObject', [ 'Bucket' => 'teste.darpine.com', 'Key' => 'cover.jpg' ]); $request = $client-

Change user ownership of s3fs mounted buckets

自古美人都是妖i 提交于 2019-12-08 18:03:48
问题 how can I modify the user:group ownership of a s3fs mounted bucket? I have a git installation that I would essentially like to store on my Amazon S3 account in a bucket, and then using Sparkleshare, via my web host, sync this data accross multiple machines. - I Have set up the sparkleshare to successfully sync three machines. Works like a charm. This is syncing to a folder at /home/git/dropbox No problems there. I want the sync folder to me a mounted S3 bucket though I can mount the buckets

Delete object or bucket in Amazon S3?

北城余情 提交于 2019-12-08 16:39:14
问题 I created a new amazon bucket called "photos". The bucket url is something like: www.amazons3.salcaiser.com/photos Now I upload subfolders containing files, into that bucket for example www.amazons3.salcaiser.com/photos/thumbs/file.jpg My questions are, does thumbs/ is assumed a new bucket or is it an object? Then if I want to delete the entire thumbs/ directory need I first to delete all files inside that or can I delete all in one time? 回答1: In the case you are describing, "photos" is the

image upload to google bucket ay cloud storage

我的梦境 提交于 2019-12-08 14:50:27
问题 I was testing the following piece of code, to see If I can upload images to the bucket at google's cloud storage. This is my app.yaml file: application: test-795 version: 1 runtime: php api_version: 1 handlers: # Serve images as static resources. - url: /(.+\.(gif|png|jpg))$ static_files: \1 upload: .+\.(gif|png|jpg)$ application_readable: true - url: /(.+\.php).* script: \1 - url: /upload script: fileimage.php and this is my fileimage.php file for uploading image file to bucket: <?php

How to remove extension name from multiple files in google cloud storage?

天涯浪子 提交于 2019-12-08 02:01:48
问题 I have files like gs://bucketname/thumbnails/12321.jpg gs://bucketname/thumbnails/44666.jpg gs://bucketname/thumbnails/89774.jpg gs://bucketname/thumbnails/63333.jpg ... in google cloud storage and I want the end result as gs://bucketname/thumbnails/12321 gs://bucketname/thumbnails/44666 gs://bucketname/thumbnails/89774 gs://bucketname/thumbnails/63333 ... I couldn't find an appropriate gsutil command for this? 回答1: gsutil doesn't have built-in support to do what you're trying to do. You

How can I specify a GridFS bucket?

耗尽温柔 提交于 2019-12-07 14:10:34
问题 This is my express.js code to upload and download files to GridFS: var fs = require("fs"); var gridStream = require("gridfs-stream"); var mongoose = require("mongoose"); exports.init = function(app, db) { var grid = gridStream(db, mongoose.mongo); app.post("/UploadFile", function(request, response) { var file = request.files.UploadedFile; var meta = request.param("Meta"); var name = request.param("Name"); var stream = grid.createWriteStream( { filename: name, metadata: meta }); fs