Forum

HomeHomeCoreCoreGeneralGeneralS3 Upload - Create S3 signatureS3 Upload - Create S3 signature
Previous
 
Next
New Post
10/2/2014 7:09 AM
 

Hi Folks,


I see that the latest version of OWS has the a new encode using HMAC256. Unfortunately there is no documentation regarding that facility


Does anyone have any idea how to use this and if it is possible to create a S3 signature in OWS for direct file uploaded.


Basically this policy document


{ "expiration": "2007-12-01T12:00:00.000Z",
  "conditions": [
    {"acl": "public-read" },
    {"bucket": "johnsmith" },
    ["starts-with", "$key", "user/eric/"],
    ["content-length-range", 2048, 20971520]
  ]
}

needs to be Base64 encoded and the signature is the HMAC of that encoding using the S3 secret key


I can do this in PHP but that would need me to contain the upload form in an iframe and I want to do it directly in OWS


Thanks in advance for any help given


Tony

Previous
 
Next
HomeHomeCoreCoreGeneralGeneralS3 Upload - Create S3 signatureS3 Upload - Create S3 signature


 

New York, NY • Baltimore, MD • Vienna, VA • St. Louis, MO • Seattle, WA • info@openwebstudio.com

Bookmark & Share Bookmark and Share