Skip to content

Commit

Permalink
formatting and style update to s3 service
Browse files Browse the repository at this point in the history
  • Loading branch information
jcberquist committed Mar 30, 2023
1 parent 78d724e commit 59e91db
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions services/s3.cfc
Original file line number Diff line number Diff line change
Expand Up @@ -568,14 +568,14 @@ component {
required string ObjectKey,
numeric Expires = 300,
string VersionId = '',
struct queryParams = {}
struct queryParams = { }
) {
var requestSettings = api.resolveRequestSettings( argumentCollection = arguments );
var host = getHost( requestSettings );
var path = arguments.Bucket.find( '.' ) ? '/' & arguments.Bucket : '';
path &= '/' & arguments.ObjectKey;
if ( len( arguments.VersionId ) ) arguments.queryParams.append({ "versionId": arguments.VersionId });

if ( len( arguments.VersionId ) ) arguments.queryParams[ 'versionId' ] = arguments.VersionId;

return api.signedUrl(
variables.service,
Expand Down Expand Up @@ -605,7 +605,7 @@ component {
* @Metadata Used to store user-defined metadata. Struct keys are prefixed with 'x-amz-meta-' and sent as headers in the put request.
* @StorageClass The storage class for the file. Valid values: STANDARD | STANDARD_IA | REDUCED_REDUNDANCY
* @WebsiteRedirectLocation If the bucket is configured as a website, redirects requests for this object to another object in the same bucket or to an external URL.
*
*
* Example: aws.s3.putObject( 'your-bucket-name', 'filename.ext', fileReadBinary( pathToFile ), '', '', '', fileGetMimeType( pathToFile ) )
* https://github.com/jcberquist/aws-cfml/issues/25
*/
Expand Down

0 comments on commit 59e91db

Please sign in to comment.