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.