SlickUpload
Welcome Guest Search | Active Topics | Log In | Register

File permission on S3 Options
imsam67
#1 Posted : Friday, December 02, 2011 2:42:46 PM
Rank: Member

Groups: Registered

Joined: 11/22/2011
Posts: 17
Location: Florida

Is it possible to set permissions for the file uploading to S3 or does that need to be handled on S3 through bucket policies?


Thanks,
Sam
Axosoft
#2 Posted : Friday, December 02, 2011 3:31:31 PM
Rank: Administration


Groups: Administrators

Joined: 7/7/2005
Posts: 1,586
Location: Scottsdale, AZ

What permissions do you want to set? If you want to set a canned ACL with the upload, you can either set it in the web.config (if it applies to all uploads), or inherit a custom upload stream provider from S3UploadStreamProvider and override the CreateBlobInfo method (if you want to set different ACL's for different uploads).

If you want to set a more detailed access policy than a canned ACL, you'd need to use a different component to set that after the upload -- SlickUpload doesn't currently support setting advanced ACL's.

To do the config in web.config, add the cannedAcl attribute to the uploadStreamProvider configuration (see the docs: http://krystalware.com/slickupload/documentation/configuration).

 

imsam67
#3 Posted : Friday, December 02, 2011 3:33:32 PM
Rank: Member

Groups: Registered

Joined: 11/22/2011
Posts: 17
Location: Florida

Great. Thanks.


Thanks,
Sam
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.