Login

    Register

Managed Hosting

PROJECT CATEGORIES

 

Amazon EC2/S3/SQS/SimpleDB Console
Project Home Blog Forums Known Issues Screenshots Contact Project

Amazon EC2/S3/SQS/SimpleDB Console Issue: S3: Adding ACL to putObject

Name: S3: Adding ACL to putObject
ID: 4
Project: Amazon EC2/S3/SQS/SimpleDB Console
Type: Enhancement
Area: Code
Severity: Normal
Status: Open
Related URL:
Creator: Matthew Bryant
Created: 02/13/09 5:16 PM
Updated: 02/13/09 5:16 PM
Description: <!---------------------------
------------myS3.cfm---------
--------------------------->

<!--- line 58: --->
<cfset s3.putObject(bucketName=url.b,fileKey=file.serverFile,contentType=file.contentType,acl=form.acl)>



<!--- Added the ACL dropdown to the html form on line 80 --->
<select name="acl">
<option value="private">Private</option>
<option value="public-read">Public-Read</option>
<option value="public-read-write">Public-Read-Write</option>
<option value="authenticated-read">Authenticated-Read</option>
</select>


<!---------------------------
------------S3.cfc---------
--------------------------->

<!--- Updated S3.cfc putObject() --->
<cfargument name="acl" type="string" required="no" default="private" hint="can be private, public-read, public-read-write, authenticated-read">



<!--- updated policyArgs --->
{"acl": "#arguments.acl#" }



<!--- updated form post --->
<cfhttpparam type="formfield" name="acl" value="#arguments.acl#">
      
History: Created by mjbryant (Matthew Bryant) : 02/13/09 5:16 PM

To add a comment to this bug, please login using the link above.