S3 directUpload Control : Access Control List?

Dec 10, 2008 at 11:59 PM
I need to add specific users to have Full Control rights to the file I upload to the bucket. In the free, proxy version of the component there was an AccessControlList node within the adapter and a object that could be added to server side. This seems to be omitted from the current Direct component. The help file does not mention this either.

e.g. client side (old version)
<AccessControlList>
   <fjxau:AccessControl URI="http://acs.amazonaws.com/groups/global/AllUsers" Permission="READ" />
</AccessControlList>
                          
e.g. server side
com.flajaxian.DirectAmazonUploader DAU= (com.flajaxian.DirectAmazonUploader)fjxUpload.Adapters[0];
DAU.BucketName = s3c.bucketReference;

com.flajaxian.AWS.AccessControl ac = new AccessControl();
ac.DisplayName = "fastEncoding";
ac.ID = "1a85ad8fea02b4d948b962948f69972a72da6bed800a7e9ca7d0b43dc61d5869";
ac.Permission = flajaxian.AWS.Permission.FULL_CONTROL;

DAU.AccessControlList.Add(ac);

Your help would be greatly received,

Many thanks,

Neil
Coordinator
Dec 11, 2008 at 12:34 AM

The control allowes the values allowed to be defined with direct post request by Amazon. More information can be found here:
http://docs.amazonwebservices.com/AmazonS3/2006-03-01/index.html?HTTPPOSTForms.html#HTTPPOSTFormFields

Click on HTML Form Fields and read acl

Here is how you specify these permissions
http://www.flajaxian.com/flajaxian.com/DirectAmazonUploader1.0Help.html#HowToSpecifyPermissions

May be you need FileAccess="AuthenticatedRead"? More precise ALC definition would require using server as proxy.

Dec 11, 2008 at 1:22 AM
I see the acl field in the amazon examples, but I can't see how it is referred to when using the S3Direct Upload component. There is only the FileAccess attribute, which is too general, or the XAmzMetaUuid parameter which adds Metadata.
Coordinator
Dec 11, 2008 at 1:56 AM
The four values passed to FileAccess as Private, PublicRead, PublicReadWrite or AuthenticatedRead are the only values allowed by Amazon with direct (not DIME) post request. XAmzMetaUuid is used when validating the request it is not related to ALC