diff --git a/classes/awstools.php b/classes/awstools.php index bdbd32f6..a31fc2e4 100644 --- a/classes/awstools.php +++ b/classes/awstools.php @@ -467,34 +467,7 @@ function fetch_s3client() { return $this->s3client; } - - function get_presigned_upload_url($contenttype, $days = 7, $key, $iosvideo = false) { - $s3client = $this->fetch_s3client(); - //Get bucket - $bucket = 'poodll-audioprocessing-out-us-east-1'; - $key = 'CP/365/olaf/' . $key; - - //options - $options = array(); - $options['Bucket'] = $bucket; - $options['Key'] = $key; - $options['Body'] = ''; - $options['ContentType'] = 'application/octet-stream'; - - $cmd = $s3client->getCommand('PutObject', $options); - - //this can fail with SDK loading issues we return an error message in that case - try { - $request = $s3client->createPresignedRequest($cmd, '+' . $days . ' days'); - $theurl = (string) $request->getUri(); - } catch (\Exception $e) { - print_error($e->getMessage()); - $theurl = $e->getMessage(); - } - return $theurl; - } - - function xget_presigned_upload_url($mediatype, $minutes = 30, $key, $iosvideo = false) { + function get_presigned_upload_url($mediatype, $minutes = 30, $key, $iosvideo = false) { $s3client = $this->fetch_s3client(); //Get bucket $bucket = '';