S3 uploads

I’m looking at using fileupload() to place resources on S3

http://www.luceedocs.org/function/fileupload

What I need to do is make the file publically available and set the storage
class to reduced redundancy.

Is that, or how is that possible with the acl attribute of fileUpload()?
On a more basic level, how does authenticate work? Anyone have an example?

Thanks for the help.

Nando

Aria Media Sagl
Via Rompada 40
6987 Caslano
Switzerland

+41 (0)91 600 9601
+41 (0)76 303 4477 cell
skype: ariamedia

In my tests with s3, I found it easier to just use something like
fuse.sf.net to mount the s3 bucket as standard file system, then apply
permissions as such.On Wednesday, February 25, 2015 at 5:38:40 AM UTC-5, Nando Breiter wrote:

I’m looking at using fileupload() to place resources on S3

http://www.luceedocs.org/function/fileupload

What I need to do is make the file publically available and set the
storage class to reduced redundancy.

Is that, or how is that possible with the acl attribute of fileUpload()?
On a more basic level, how does authenticate work? Anyone have an example?

Thanks for the help.

Nando

Aria Media Sagl
Via Rompada 40
6987 Caslano
Switzerland

+41 (0)91 600 9601
+41 (0)76 303 4477 cell
skype: ariamedia

Hello Nando,

here is a quick copy/paste of code that has been working for us :


<cfset local.destinationFile =
urlEncodedFormat(arguments.destinationFile,‘utf-8’)>









And for the signature, here is what we use (not my code) :




<cfset local.fixedData = replace(arguments.stringIn,“\n”,“#chr(10)#”,“all”)>

<cfset local.signature = toBase64(“#local.digest#”)>

<cfset var jMsg =
JavaCast(“string”,arguments.signMessage).getBytes(“iso-8859-1”) />
<cfset var jKey =
JavaCast(“string”,arguments.signKey).getBytes(“iso-8859-1”) />
<cfset var key = createObject(“java”,“javax.crypto.spec.SecretKeySpec”)
/>
<cfset var mac = createObject(“java”,“javax.crypto.Mac”) />

<cfset key = key.init(jKey,“HmacSHA1”) />

<cfset mac.init(key) />
<cfset mac.update(jMsg) />

<cfreturn mac.doFinal() />

Hope it helps

Thanks,
Jean–
Jean Moniatte
UGAL
@Jean_Moniatte

On Wed, Feb 25, 2015 at 11:38 AM, Nando Breiter <@Nando_Breiter> wrote:

I’m looking at using fileupload() to place resources on S3

http://www.luceedocs.org/function/fileupload

What I need to do is make the file publically available and set the
storage class to reduced redundancy.

Is that, or how is that possible with the acl attribute of fileUpload()?
On a more basic level, how does authenticate work? Anyone have an example?

Thanks for the help.

Nando

Aria Media Sagl
Via Rompada 40
6987 Caslano
Switzerland

+41 (0)91 600 9601
+41 (0)76 303 4477 cell
skype: ariamedia


You received this message because you are subscribed to the Google Groups
“Lucee” group.
To unsubscribe from this group and stop receiving emails from it, send an
email to lucee+unsubscribe@googlegroups.com.
To post to this group, send email to lucee@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/lucee/CAGHrs%3D9Wp7%2Bn5-KSjx3F9FhT-7KoyVGRwoJOQkZsq1chHqFW2Q%40mail.gmail.com
https://groups.google.com/d/msgid/lucee/CAGHrs%3D9Wp7%2Bn5-KSjx3F9FhT-7KoyVGRwoJOQkZsq1chHqFW2Q%40mail.gmail.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.

I’m not sure the fileUpload or fileWrite can handle the reduce redundancy
option. It can however handle permissions.
file action=“write” file=“s3:\#accesskey#:#secretKey#@#bucket##filename#”
output=“myData” storeacl=[{group=“all”, permission=“READ”}];

If you need more control - check out
http://www.coldbox.org/forgebox/view/Amazon-S3

However both methods require accepting the file locally and then uploading
to S3. Pete’s code provides a way to upload directly to S3 I believe.

Jeremy R. DeYoung
(615) 261-8201 | fax (615) 680-0870
What is Your Next Step.com? http://www.nextstep.guru/[image: Next
Step.Guru - Better paths start with one step.] http://www.nextstep.guru/On Wed, Feb 25, 2015 at 2:09 PM, Terry Whitney <@Terry_Whitney> wrote:

In my tests with s3, I found it easier to just use something like
fuse.sf.net to mount the s3 bucket as standard file system, then apply
permissions as such.

On Wednesday, February 25, 2015 at 5:38:40 AM UTC-5, Nando Breiter wrote:

I’m looking at using fileupload() to place resources on S3

http://www.luceedocs.org/function/fileupload

What I need to do is make the file publically available and set the
storage class to reduced redundancy.

Is that, or how is that possible with the acl attribute of fileUpload()?
On a more basic level, how does authenticate work? Anyone have an example?

Thanks for the help.

Nando

Aria Media Sagl
Via Rompada 40
6987 Caslano
Switzerland

+41 (0)91 600 9601
+41 (0)76 303 4477 cell
skype: ariamedia


You received this message because you are subscribed to the Google Groups
“Lucee” group.
To unsubscribe from this group and stop receiving emails from it, send an
email to lucee+unsubscribe@googlegroups.com.
To post to this group, send email to lucee@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/lucee/b63d7c67-cb10-4abb-8813-e7b5e39b954d%40googlegroups.com
https://groups.google.com/d/msgid/lucee/b63d7c67-cb10-4abb-8813-e7b5e39b954d%40googlegroups.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.

Thanks for all the feedback. It is very much appreciated and I think I have
a decent handle now on how to approach this.

Aria Media Sagl
Via Rompada 40
6987 Caslano
Switzerland

+41 (0)91 600 9601
+41 (0)76 303 4477 cell
skype: ariamediaOn Wed, Feb 25, 2015 at 9:40 PM, Jeremy R DeYoung <@Jeremy_R_DeYoung> wrote:

I’m not sure the fileUpload or fileWrite can handle the reduce redundancy
option. It can however handle permissions.
file action=“write”
file=“s3:\#accesskey#:#secretKey#@#bucket##filename#” output=“myData”
storeacl=[{group=“all”, permission=“READ”}];

If you need more control - check out
http://www.coldbox.org/forgebox/view/Amazon-S3

However both methods require accepting the file locally and then uploading
to S3. Pete’s code provides a way to upload directly to S3 I believe.

Jeremy R. DeYoung
(615) 261-8201 | fax (615) 680-0870
What is Your Next Step.com? http://www.nextstep.guru/[image: Next
Step.Guru - Better paths start with one step.] http://www.nextstep.guru/

On Wed, Feb 25, 2015 at 2:09 PM, Terry Whitney <@Terry_Whitney> wrote:

In my tests with s3, I found it easier to just use something like
fuse.sf.net to mount the s3 bucket as standard file system, then apply
permissions as such.

On Wednesday, February 25, 2015 at 5:38:40 AM UTC-5, Nando Breiter wrote:

I’m looking at using fileupload() to place resources on S3

http://www.luceedocs.org/function/fileupload

What I need to do is make the file publically available and set the
storage class to reduced redundancy.

Is that, or how is that possible with the acl attribute of fileUpload()?
On a more basic level, how does authenticate work? Anyone have an
example?

Thanks for the help.

Nando

Aria Media Sagl
Via Rompada 40
6987 Caslano
Switzerland

+41 (0)91 600 9601
+41 (0)76 303 4477 cell
skype: ariamedia


You received this message because you are subscribed to the Google Groups
“Lucee” group.
To unsubscribe from this group and stop receiving emails from it, send an
email to lucee+unsubscribe@googlegroups.com.
To post to this group, send email to lucee@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/lucee/b63d7c67-cb10-4abb-8813-e7b5e39b954d%40googlegroups.com
https://groups.google.com/d/msgid/lucee/b63d7c67-cb10-4abb-8813-e7b5e39b954d%40googlegroups.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.


You received this message because you are subscribed to the Google Groups
“Lucee” group.
To unsubscribe from this group and stop receiving emails from it, send an
email to lucee+unsubscribe@googlegroups.com.
To post to this group, send email to lucee@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/lucee/CAFy17u%3DX6vYfwi1eehAwHBiqAra%3Dprqcya4Tjo_frbD78r6vhA%40mail.gmail.com
https://groups.google.com/d/msgid/lucee/CAFy17u%3DX6vYfwi1eehAwHBiqAra%3Dprqcya4Tjo_frbD78r6vhA%40mail.gmail.com?utm_medium=email&utm_source=footer
.

For more options, visit https://groups.google.com/d/optout.

I use this simple wrapper CFC

http://amazons3.riaforge.org/

Hope this helps,
AdamOn Thursday, February 26, 2015 at 11:29:56 PM UTC+11, Nando Breiter wrote:

Thanks for all the feedback. It is very much appreciated and I think I
have a decent handle now on how to approach this.

Aria Media Sagl
Via Rompada 40
6987 Caslano
Switzerland

+41 (0)91 600 9601
+41 (0)76 303 4477 cell
skype: ariamedia

On Wed, Feb 25, 2015 at 9:40 PM, Jeremy R DeYoung <Jer…@nextstep.guru <javascript:>> wrote:

I’m not sure the fileUpload or fileWrite can handle the reduce redundancy
option. It can however handle permissions.
file action=“write”
file=“s3:\#accesskey#:#secretKey#@#bucket##filename#” output=“myData”
storeacl=[{group=“all”, permission=“READ”}];

If you need more control - check out
http://www.coldbox.org/forgebox/view/Amazon-S3

However both methods require accepting the file locally and then
uploading to S3. Pete’s code provides a way to upload directly to S3 I
believe.

Jeremy R. DeYoung
(615) 261-8201 | fax (615) 680-0870
What is Your Next Step.com? http://www.nextstep.guru/[image: Next
Step.Guru - Better paths start with one step.]
http://www.nextstep.guru/

On Wed, Feb 25, 2015 at 2:09 PM, Terry Whitney <twhitn...@gmail.com <javascript:>> wrote:

In my tests with s3, I found it easier to just use something like
fuse.sf.net to mount the s3 bucket as standard file system, then apply
permissions as such.

On Wednesday, February 25, 2015 at 5:38:40 AM UTC-5, Nando Breiter wrote:

I’m looking at using fileupload() to place resources on S3

http://www.luceedocs.org/function/fileupload

What I need to do is make the file publically available and set the
storage class to reduced redundancy.

Is that, or how is that possible with the acl attribute of fileUpload()?
On a more basic level, how does authenticate work? Anyone have an
example?

Thanks for the help.

Nando

Aria Media Sagl
Via Rompada 40
6987 Caslano
Switzerland

+41 (0)91 600 9601
+41 (0)76 303 4477 cell
skype: ariamedia


You received this message because you are subscribed to the Google
Groups “Lucee” group.
To unsubscribe from this group and stop receiving emails from it, send
an email to lucee+un...@googlegroups.com <javascript:>.
To post to this group, send email to lu...@googlegroups.com
<javascript:>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/lucee/b63d7c67-cb10-4abb-8813-e7b5e39b954d%40googlegroups.com
https://groups.google.com/d/msgid/lucee/b63d7c67-cb10-4abb-8813-e7b5e39b954d%40googlegroups.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.


You received this message because you are subscribed to the Google Groups
“Lucee” group.
To unsubscribe from this group and stop receiving emails from it, send an
email to lucee+un...@googlegroups.com <javascript:>.
To post to this group, send email to lu...@googlegroups.com <javascript:>
.
To view this discussion on the web visit
https://groups.google.com/d/msgid/lucee/CAFy17u%3DX6vYfwi1eehAwHBiqAra%3Dprqcya4Tjo_frbD78r6vhA%40mail.gmail.com
https://groups.google.com/d/msgid/lucee/CAFy17u%3DX6vYfwi1eehAwHBiqAra%3Dprqcya4Tjo_frbD78r6vhA%40mail.gmail.com?utm_medium=email&utm_source=footer
.

For more options, visit https://groups.google.com/d/optout.