Skip to content

Instantly share code, notes, and snippets.

@sanjay1688
Created December 26, 2014 08:09
Show Gist options
  • Save sanjay1688/be2cf4c54386a65008e6 to your computer and use it in GitHub Desktop.
Save sanjay1688/be2cf4c54386a65008e6 to your computer and use it in GitHub Desktop.
My code
// php upload function
Array
(
[file] => /tmp/phpRZl57f
[wait] => 1
[lossy] => 1
[s3_store] => Array
(
[key] => xxxxxx
[secret] => xxxxxx
[bucket] => b.fitn.in
[region] => ap-southeast-1
[headers] => Array
(
[Cache-Control] => max-age=2592000000
[Expires] => Wed, 11 Apr 2096 20:25:37 GMT
[Content-Type] => image/jpeg
)
[path] => f/c/1767_1419581132.jpg
)
)
$original_response = Kraken::upload($original_upload_params);
// getting response
Array
(
[message] => Error while pushing file to S3: Expected params.Expires to be a Date object, ISO-8601 string, or a UNIX timestamp
[success] =>
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment