I have a problem to list files from my bucket in S3 using Laravel 5.1. When I try , it returns the message " SignatureDoesNotMatchThe signature request, calculated does not match the signature you provided. Make sure your key and signature ." I tested this on a Java class and return Ok . Below my setup .
我在使用Laravel 5.1在S3中列出我的存储桶中的文件时遇到问题。当我尝试时,它返回消息“SignatureDoesNotMatchThe签名请求,计算与您提供的签名不匹配。确保您的密钥和签名。”我在Java类上测试了它并返回Ok。在我的设置下面。
' S3 ' = > [
' Driver ' => ' s3 '
' Key ' => env ( ' S3_KEY ' ) ,
' Secret' = > env ( ' S3_SECRET ' ) ,
" Region " = > env ( ' S3_REGION ' ) ,
' Bucket ' => env ( ' S3_BUCKET ' ) ,
' Scheme ' => ' http '
]
:: Storage disk ( s3 ) -> files ( )
Any idea ?
任何想法 ?
1 个解决方案
#1
1
env ( ' S3_KEY ' )
env('S3_KEY')
remove the spaces
删除空格
env ( 'S3_KEY' )
env('S3_KEY')