Hi have the S3 bucket library in the codeigniter and I'm try to upload a file from a folder but it give me error. Much appreciated if some one could point out what I'm doing worng.
In the Module folder below code.
$this->load->library('s3');
$bucket = "xxxxxxxxxx";
$file = "http://localhost/xxxx/backup/01.txt";
$this->s3->putObjectFile($file, $bucket, 'test', S3::ACL_PUBLIC_READ);
I get the below error.
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