Page 1 of 1

Serving Files from S3 using shortcodes or links ?

PostPosted: October 24th, 2011, 9:47 pm
by barefootango
Can someone tell me if this shortcode is right please ???

I am looking at the documentation, and at this point I AM GUESSING!!!

Ahem.

[s2File download="/bucketname/filename.zip", count_against_user="no", check_user="1", rewrite="1", download_key="1", storage="s3"]

And would this generate a link to the file or do I have create a <a href>link</a> and if so what would that look like ?

Thanks.

Miles.

Re: Serving Files from S3 using shortcodes or links ?

PostPosted: October 25th, 2011, 12:48 am
by barefootango
Found the solution to my own problem in case anyone wants to know:

<a href=[s2File download="filename.zip" download_key="true" count_against_user="1" check_user="1" rewrite="1"storage="S3"]>test</a>

will generate the link you're wanting....

Re: Serving Files from S3 using shortcodes or links ?

PostPosted: October 25th, 2011, 8:24 am
by Eduan
Okay thanks!