質問編集履歴

2

URLの編集

2018/02/22 01:06

投稿

tarofess
tarofess

スコア127

test CHANGED
File without changes
test CHANGED
@@ -30,7 +30,7 @@
30
30
 
31
31
  ```
32
32
 
33
- $filePath->imageには「https://storage.googleapis.com/nogyosns.appspot.com/article/123456abcd」といったフルパスが入っています。
33
+ $filePath->imageには「https://storage.googleapis.com/myproject.appspot.com/article/123456abcd」といったフルパスが入っています。
34
34
 
35
35
  なぜアップロードはできるのに削除ができないのでしょうか?
36
36
 

1

エラーメッセージのURLを編集

2018/02/22 01:06

投稿

tarofess
tarofess

スコア127

test CHANGED
File without changes
test CHANGED
@@ -4,9 +4,11 @@
4
4
 
5
5
  Aws \ S3 \ Exception \ S3Exception
6
6
 
7
- Error executing "ListObjects" on "https://storage.googleapis.com/myproject.appspot.com?prefix=https%3A%2Fstorage.googleapis.com%2Fmyproject.appspot.com%2Farticle%2F13126737715a8cbc842510d%2F&max-keys=1&encoding-type=url"; AWS HTTP error: Client error: `GET https://storage.googleapis.com/myproject.appspot.com?prefix=https%3A%2Fstorage.googleapis.com%2Fmyproject.appspot.com%2Farticle%2F13126737715a8cbc842510d%2F&max-keys=1&encoding-type=url` resulted in a `400 Bad Request` response: <?xml version='1.0' encoding='UTF-8'?><Error><Code>InvalidArgument</Code><Message>Invalid argument.</Message><Details>In (truncated...) InvalidArgument (client): Invalid argument. - <?xml version='1.0' encoding='UTF-8'?><Error><Code>InvalidArgument</Code><Message>Invalid argument.</Message><Details>Invalid query parameter(s): [encoding-type]</Details></Error>
7
+ Error executing "ListObjects" on "myproject.appspot.com"; AWS HTTP error: Client error: `GET myproject.appspot.com` resulted in a `400 Bad Request` response: <?xml version='1.0' encoding='UTF-8'?><Error><Code>InvalidArgument</Code><Message>Invalid argument.</Message><Details>In (truncated...) InvalidArgument (client): Invalid argument. - <?xml version='1.0' encoding='UTF-8'?><Error><Code>InvalidArgument</Code><Message>Invalid argument.</Message><Details>Invalid query parameter(s): [encoding-type]</Details></Error>
8
8
 
9
9
  ```
10
+
11
+ 現在LaravelのFileSystemを使ってCloud Storageとのやり取りを行なっています。
10
12
 
11
13
  以下のコードで画像のアップロードはできています。
12
14
 
@@ -32,4 +34,6 @@
32
34
 
33
35
  なぜアップロードはできるのに削除ができないのでしょうか?
34
36
 
37
+ Cloud Storage内のデータを削除するには何か設定をしなければいけないのでしょうか?
38
+
35
39
  どなたか分かる方がいれば教えていただきたいです。よろしくお願いします。