Annulleret

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 1.5.17.1

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-1.5.17.1/[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;

}

}

Færdigheder: PHP, Software Arkitektur

Se mere: php aws, error 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 send, php sdk, aws php upload, upload aws, aws script, php script putfile, send php sdk, software php script, aws sdk php

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

Projekt-ID: #4111041

3 freelancere byder i gennemsnit $30 for dette job

meet2amitvw

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)
6.8
k1ng440

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

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

i have the solution.

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