classes/Cloud/Storage/Driver/S3/WasabiStorage.php
public function uploadUrl($key, $acl, $mimeType = null, $cacheControl = null, $expires = null) {
		try {
			$optionsData = [
				'ACL' => $acl,
				'Bucket' => $this->bucket,
				'ContentType' => $mimeType,
				'Key' => $key
			];

			if(!empty($cacheControl)) {
				$optionsData[] = ['CacheControl' => $cacheControl];
			}

			if(!empty($expires)) {
				$optionsData[] = ['Expires' => $expires];
			}

			$putCommand = $this->client->getCommand('PutObject',$optionsData);
			$request = $this->client->createPresignedRequest($putCommand, '+20 minutes');
			$signedUrl = (string)$request->getUri();

			return new OtherS3UploadInfo($key,$signedUrl,$acl);
		}
		catch(AwsException $ex) {
			Logger::error('S3 Generate File Upload URL Error', ['exception' => $ex->getMessage()]);
			throw new StorageException($ex->getMessage(), $ex->getCode(), $ex);
		}
	}
public function uploadUrl($key, $acl, $mimeType = null, $cacheControl = null, $expires = null) {
		try {
			$optionsData = [
				'ACL' => $acl,
				'Bucket' => $this->bucket,
				'ContentType' => $mimeType,
				'Key' => $key
			];

			if(!empty($cacheControl)) {
				$optionsData[] = ['CacheControl' => $cacheControl];
			}

			if(!empty($expires)) {
				$optionsData[] = ['Expires' => $expires];
			}

			$putCommand = $this->client->getCommand('PutObject',$optionsData);
			$request = $this->client->createPresignedRequest($putCommand, '+20 minutes');
			$signedUrl = (string)$request->getUri();

			return new OtherS3UploadInfo($key,$signedUrl,$acl);
		}
		catch(AwsException $ex) {
			Logger::error('S3 Generate File Upload URL Error', ['exception' => $ex->getMessage()]);
			throw new StorageException($ex->getMessage(), $ex->getCode(), $ex);
		}
	}
public function uploadUrl ( $ key , $ acl , $ mimeType = null , $ cacheControl = null , $ expires = null ) { try { $ optionsData = [ 'ACL' => $ acl , 'Bucket' => $ this -> bucket , 'ContentType' => $ mimeType , 'Key' => $ key ] ; if ( ! empty ( $ cacheControl ) ) { $ optionsData [ ] = [ 'CacheControl' => $ cacheControl ] ; } if ( ! empty ( $ expires ) ) { $ optionsData [ ] = [ 'Expires' => $ expires ] ; } $ putCommand = $ this -> client -> getCommand ( 'PutObject' , $ optionsData ) ; $ request = $ this -> client -> createPresignedRequest ( $ putCommand , '+20 minutes' ) ; $ signedUrl = ( string ) $ request -> getUri ( ) ; return new OtherS3UploadInfo ( $ key , $ signedUrl , $ acl ) ; } catch ( AwsException $ ex ) { Logger :: error ( 'S3 Generate File Upload URL Error' , [ 'exception' => $ ex -> getMessage ( ) ] ) ; throw new StorageException ( $ ex -> getMessage ( ) , $ ex -> getCode ( ) , $ ex ) ; } }
region Direct Uploads
region Direct Uploads