" . __( 'Video Upload Form' ) . ""; $s3key = get_option('s3key'); $s3secret = get_option('s3key_secret'); $s3bucket = get_option('s3bucketID'); //include the S3 class if (!class_exists('S3'))require_once('S3.php'); //instantiate the class $s3 = new S3($s3key, $s3secret); //check whether a form was submitted if(isset($_POST['Submit'])){ //retreive post variables $fileName = $_FILES['theFile']['name']; $fileTempName = $_FILES['theFile']['tmp_name']; //create a new bucket $s3->putBucket("$s3bucket", S3::ACL_PUBLIC_READ); //move the file if ($s3->putObjectFile($fileTempName, "$s3bucket", $fileName, S3::ACL_PUBLIC_READ)) { echo "

Thank you, your file was successfully uploaded. Click here to view or download your files.

"; }else{ echo "Something went wrong while uploading your file... sorry please try again."; } } ?>

Upload a file

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