Closed mushahid-vizteck closed 6 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)) { }
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)) { }