I am uploading images to amazons3 bucket, but its taking like 2 minutes execution for 10 images but I have to upload 10GB of images, I should receive the update for the each image update make sure its working....
while($file=readdir($handle)):
if(is_file($file)){
$extn = explode('.',$file);
$extn = array_pop($extn);
if (in_array(strtolower($extn),$includedExtn)) {
set_time_limit(0);
if ($s3->putObjectFile($file, $bucketName, baseName($file), S3::ACL_PUBLIC_READ)) {
echo "<br/>";
echo "S3::putObjectFile(): File copied to {$bucketName}/".baseName($file);
} else {
echo "S3::putObjectFile(): Failed to copy file
";
}
}
} else {
echo "No more files left";
}
endwhile;