123); $requestHeaders = array( 'Content-Type' => 'application/octet-stream', 'Content-Disposition' => 'attachment; filename=${filename}' ); $params = S3::getHttpUploadPostParams( $bucket, $path, S3::ACL_PUBLIC_READ, $lifetime, $maxFileSize, 201, // Or a URL to redirect to on success $metaHeaders, $requestHeaders, false // False since we're not using flash ); $uploadURL = 'https://' . $bucket . '.s3.amazonaws.com/'; ?>