asafdav/ng-s3upload — pull request #15 by dotansimha (2014-03-18 20:55:55+00:00)
Title: Fixes for s3 api, Added events, Bootstrap3 progressbar, extra headers

Changes:
- Fixes for s3 API (changed the "key" to "AWSAccessKeyId")
- Change progressbar template to work with Bootstrap 3
- Added events for start upload, upload done, upload failed
- Added ability to add custom headers for upload request.
- Changed HTTPS to HTTP to support non-https sites

Usage example:
```
$scope.s3UploadOptions =
{
getOptionsUri: s3ErasOptionsUri,
folder: "",
acl: "private",
uploadStartCallback: function()
{

},
uploadDoneCallback: function(fileUrl, fileKey)
{
$scope.uploadDone = true;

ApplicantModel.importApplicantErasFile(fileKey).then(function (data)
{
$scope.proccessJobId = data.job_id;
$timeout(checkJobStatus, statusCheckInterval);
});
},
uploadErrorCallback: function()
{
}
};
```