putBucket("testing-file", S3::ACL_PUBLIC_READ); //move the file if ($s3->putObjectFile($fileTempName, "testing-file", $fileName, S3::ACL_PUBLIC_READ)) { echo "We successfully uploaded your file."; }else{ echo "Something went wrong while uploading your file... sorry."; } } ?>

Upload a file

Please select a file by clicking the 'Browse' button and press 'Upload' to start uploading your file.

All uploaded files

getBucket("testing-file"); foreach ($contents as $file){ $fname = $file['name']; $furl = "http://testing-file.s3-website-ap-southeast-1.amazonaws.com/".$fname; //output a link to the file echo "$fname
"; } ?>