草庐IT

K-Bucket

全部标签

php - 如何将 Content-Disposition Headers 设置为 Amazon S3 Bucket 上的默认值

我遇到的问题是我需要Content-Disposition:attachmentheader出现在每个命中我的存储桶的文件上。在Wordpress中,我可以只使用.htaccess来覆盖有问题的文件类型(视频),但这些规则不会扩展到我的S3下载,浏览器只是试图打开,而不是下载。我需要一个自动/默认的解决方案,因为我不是唯一上传这些文件的人(我们的员工通过Wordpress上传,上传的所有内容都存储在我们的S3存储桶中)。所以使用Cloudberry或其他浏览器对这种情况没有用。我无法按文件调整文件(上传太频繁)。有办法吗?(其他信息:我在Wordpress上使用“AmazonS3和Cl

iOS 图片上传到 AWS S3 Bucket 非常慢

我正在尝试使用AWSSDK从我的iOS应用程序将图像上传到AWSS3存储桶。我使用以下方法上传图片:funcuploadMedia(mediaData:Data,mediaID:String){letcredentialsProvider=AWSCognitoCredentialsProvider(regionType:.SomeRegion,identityPoolId:"myidentitypool...")letconfiguration=AWSServiceConfiguration(region:.SomeRegion,credentialsProvider:credenti

iOS Swift Firebase 存储错误 "No default Storage bucket found"

在尝试像这样设置对我的Firebase存储的引用时:letstorage=FIRStorage.storage()我看到以下错误:uncaughtexception'NSInvalidArgumentException',reason:'NodefaultStoragebucketfound.DidyouconfigureFirebaseStorageproperly?'据我所知,一切都已正确设置。我已经在Firebase上创建并链接了该应用我已经生成并添加了googleplist我已经用CocoaPods安装了库:pod'Firebase/Core'pod'Firebase/存储'我

ios - 适用于 iOS 的 AWS 开发工具包 : unable to list the files in an S3 bucket

我遵循了第一步here配置凭据和S3存储桶。然后,在我的代码中,我有:funcsetupCredentialsProvider(){letcredentialsProvider=AWSCognitoCredentialsProvider(regionType:.USEast1,identityPoolId:identityPoolIdStr)letconfiguration=AWSServiceConfiguration(region:.USEast1,credentialsProvider:credentialsProvider)AWSServiceManager.defaultSe

ios - 允许仅部分用户访问 Firebase Storage Bucket

我的存储目录中有一个名为users-projects的主“文件夹”,然后我为每个用户的项目创建文件夹。我想允许用户仅访问他们的项目和他们受邀参与的项目,例如与协作者一起使用的Dropbox或GoogleDrive文件夹。在文档中他们说:Includegroupinformation(suchasagroupIDorlistofauthorizeduids)inthefilemetadata所以这是我的问题:我可以直接对文件夹执行此操作吗?如何存储授权uid列表?我正在用Swift编写一个iOS应用程序。这是我的规则的实际代码:servicefirebase.storage{match/

java - AWS lambda : How to access S3 bucket from Lambda function using java

我已经编写了一个Lambda函数。该函数在s3Bucket="my-lambda"中上传,映射到角色hello-lambda-role和regionName="us-west-2"。现在我想访问s3Bucket="some-other",我们已经将Policy映射到“hello-lambda-role”,它位于“eu-west-1”区域。这是我正在使用的API类AmazonS3Client.我的意图是从“其他”存储桶中获取一些文件。但在此之前,我需要建立连接。importcom.amazonaws.services.lambda.runtime.Context;importcom.am

python - 模组安全 : Output filter: Failed to read bucket (rc 104): Connection reset by peer

我正在向使用django和活塞上传文件的休息服务发出POST请求,但是当我发出请求时,我得到这个(奇怪的?)错误:[SunJul0416:12:382010][error][client79.39.191.166]ModSecurity:Outputfilter:Failedtoreadbucket(rc104):Connectionresetbypeer[hostname"url"][uri"/api/odl/"][unique_id"TDEVZEPNBIMAAGLwU9AAAAAG"]这是什么意思?我该如何调试它? 最佳答案 O

python - 使用 Python 将文件上传到 Google Cloud Storage Bucket 子目录

我已经成功实现了将文件上传到GoogleCloudStorage存储桶的python函数,但我想将它添加到存储桶中的子目录(文件夹),当我尝试将它添加到存储桶名称时,代码失败找到文件夹。谢谢!defupload_blob(bucket_name,source_file_name,destination_blob_name):"""Uploadsafiletothebucket."""storage_client=storage.Client()bucket=storage_client.get_bucket(bucket_name+"/folderName")#Itriedtoaddm

python - get_bucket() 为我未通过 Boto 创建的 S3 存储桶提供 'Bad Request'

我正在使用Boto尝试获取AmazonS3中的存储桶,但当我对某些存储桶使用get_bucket()时它返回错误请求。我开始怀疑这是否是Boto的错误,因为我可以使用get_all_buckets()获取存储桶。>>>fromboto.s3.connectionimportS3Connection>>>conn=S3Connection(S3_ACCESS_KEY,S3_SECRET_KEY)>>>buckets=conn.get_all_buckets()>>>buckets[]>>>buckets[0]>>>conn.get_bucket('mysite-backups')Trac

python - 无法使用boto连接aws s3 bucket

AWS_ACCESS_KEY_ID=''AWS_SECRET_ACCESS_KEY=''Bucketname='Bucket-name'importbotofromboto.s3.keyimportKeyimportboto.s3.connectionconn=boto.connect_s3(AWS_ACCESS_KEY_ID,AWS_SECRET_ACCESS_KEY,host='s3.ap-southeast-1.amazonaws.com',is_secure=True,#uncommmntifyouarenotusingsslcalling_format=boto.s3.con