【发布时间】:2015-03-12 05:57:24
【问题描述】:
您好,codeigniter 中有 S3 存储桶库,我尝试从文件夹上传文件,但它给了我错误。非常感谢有人能指出我在做什么。
在代码下方的模块文件夹中。
$this->load->library('s3');
$bucket = "xxxxxxxxxx";
$file = "http://localhost/xxxx/backup/01.txt";
$this->s3->putObjectFile($file, $bucket, 'test', S3::ACL_PUBLIC_READ);
我收到以下错误。
A PHP Error was encountered
Severity: User Warning
Message: S3::inputFile(): Unable to open input file: http://localhost/xxxx/backup/01.txt
Filename: libraries/S3.php
Line Number: 310
【问题讨论】:
标签: php codeigniter amazon-web-services amazon-s3