PHP script to upload files to AWS S3 bucket with periods in the bucket name

I can't seem to upload files via my existing PHP script to AWS S3 bucket that has a bucket name with periods.

ie "[url removed, login to view]"

Using the current AWS SDK

MY script looks like this..It should be an easy fix, unless this is a issue with the SDK

Budget is $30

function putfile($filename, $bucket_filename, $bucketname)


require_once('sdk-[url removed, login to view]');

$s3 = new AmazonS3();

$s3->batch()->create_object($bucketname, $bucket_filename, array('fileUpload' => $filename, 'acl'=>AmazonS3::ACL_PUBLIC));

$file_upload_response = $s3->batch()->send();

if (!$file_upload_response->areOK()) {

echo 'ERROR... ';

return false;

} else {

echo 'SUCCESS';

return true;



Evner: PHP, Software Arkitektur

Se mere: php aws, error in php script, aws, aws php, php script function, php script echo, php script name, aws sdk upload, aws architecture, aws sdk, echo script php, aws bucket software, aws bucket, echo script, php echo script, php upload aws, php script class, php script send, php sdk, aws php upload, upload aws, aws script, php script putfile, send php sdk, software php script

Om arbejdsgiveren:
( 84 bedømmelser ) Sydney, Australia

Projekt ID: #4111041

3 freelancere byder i gennemsnit $30 på dette job


Hello I know this and solve it within some hours. Let me know if you are interested i can start it immediately.

$30 AUD på 1 dag
(60 bedømmelser)

Full time freelance web developer with over 8 years of commercial experience.

$30 AUD på 1 dag
(88 bedømmelser)

i have the solution.

$30 AUD in 0 dage
(0 bedømmelser)