Skip to content

Instantly share code, notes, and snippets.

@shamoons
Created April 6, 2015 15:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shamoons/e8d60d2e9085e5ec9d9f to your computer and use it in GitHub Desktop.
Save shamoons/e8d60d2e9085e5ec9d9f to your computer and use it in GitHub Desktop.
var upload_url = presigned_s3_url;
console.log($scope.files);
$upload.http({
url: upload_url,
file: $scope.files,
method: 'PUT',
headers: {
'Content-Type': 'image/png'
}
})
.then(function (response) {
console.log(response);
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment