function s3Params(config, filename) {
  const credential = amzCredential(config);
  const policy = s3UploadPolicy(config, filename, credential);
  const policyBase64 = new Buffer(JSON.stringify(policy)).toString('base64');
  return {
    key: filename,
    acl: 'public-read',
    success_action_status: '201',
    policy: policyBase64,
    'x-amz-algorithm': 'AWS4-HMAC-SHA256',
    'x-amz-credential': credential,
    'x-amz-date': dateString() + 'T000000Z',
    'x-amz-signature': s3UploadSignature(config, policyBase64, credential)
  }
}
// Returns the parameters that must be passed to the API call
Returns the parameters that must be passed to the API call
Returns the parameters that must be passed to the API call
function s3Params(config, filename) {
  const credential = amzCredential(config);
  const policy = s3UploadPolicy(config, filename, credential);
  const policyBase64 = new Buffer(JSON.stringify(policy)).toString('base64');
  return {
    key: filename,
    acl: 'public-read',
    success_action_status: '201',
    policy: policyBase64,
    'x-amz-algorithm': 'AWS4-HMAC-SHA256',
    'x-amz-credential': credential,
    'x-amz-date': dateString() + 'T000000Z',
    'x-amz-signature': s3UploadSignature(config, policyBase64, credential)
  }
}
function s3Params ( config , filename ) { const credential = amzCredential ( config ) ; const policy = s3UploadPolicy ( config , filename , credential ) ; const policyBase64 = new Buffer ( JSON . stringify ( policy ) ) . toString ( 'base64' ) ; return { key : filename , acl : 'public-read' , success_action_status : '201' , policy : policyBase64 , 'x-amz-algorithm' : 'AWS4-HMAC-SHA256' , 'x-amz-credential' : credential , 'x-amz-date' : dateString ( ) + 'T000000Z' , 'x-amz-signature' : s3UploadSignature ( config , policyBase64 , credential ) } }
Returns the parameters that must be passed to the API call
Returns the parameters that must be passed to the API call