tpyo / amazon-s3-php-class

A standalone Amazon S3 (REST) client for PHP 5/CURL
1.03k stars 503 forks source link

Unable to upload multiple images in form #139

Closed mushahid-vizteck closed 6 years ago

mushahid-vizteck commented 7 years ago

I have three input fields in form to upload images on S3 but the it is uploading only last image.

I have tried to create three different objects but still not uploading three images. Here is the code:

$s3 = new S3(awsAccessKey, awsSecretKey); if ($s3->putObjectFile($imagePath, $bucketName, baseName($imageName), S3::ACL_PUBLIC_READ)) { }