We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6f1f5a6 commit 4789693Copy full SHA for 4789693
lib/helper/uploadHelper.js
@@ -10,8 +10,7 @@ angular
10
.service('uploadHelper', function($rootScope, $injector) {
11
'use strict';
12
13
- const http = { CREATED: 201 };
14
-
+ var HTTP = { CREATED: 201 };
15
var concurrentUploads = {};
16
var Sources = $injector.get('Sources');
17
@@ -24,7 +23,7 @@ angular
24
23
key: getKey(credential, file.name),
25
AWSAccessKeyId: credential.aws_access_key_id,
26
'Content-Type': 'multipart/form-data',
27
- success_action_status: http.CREATED,
+ success_action_status: HTTP.CREATED,
28
acl: 'private',
29
policy: credential.policy,
30
signature: credential.signature
@@ -45,7 +44,7 @@ angular
45
44
delete concurrentUploads[uploadObject.id];
46
uploadObject.isUploading = false;
47
48
- if(xhr2.status === http.CREATED) {
+ if(xhr2.status === HTTP.CREATED) {
49
$rootScope.$broadcast('jsSDK.upload.uploaded', uploadObject);
50
} else {
51
$rootScope.$broadcast('jsSDK.upload.error', { upload: uploadObject, request: xhr2 });
0 commit comments