Skip to content
This repository was archived by the owner on Mar 4, 2025. It is now read-only.

Commit 8ead12b

Browse files
author
vikasrohit
committed
SUP-1159, Progress bar to show %complete on upload
-- Reverted the change to test error condition -- Added more error handlers
1 parent 5d192d6 commit 8ead12b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

app/services/submissions.service.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
.catch(function(err) {
3030
console.log(err);
3131
$log.info('Error getting presigned url');
32+
progressCallback.call(progressCallback, 'ERROR', err);
3233
toaster.pop('error', 'Whoops!', 'There was an error uploading your submissions. Please try again later.');
3334
});
3435
}
@@ -107,7 +108,7 @@
107108
file.status = 'UPLOADED';
108109
});
109110

110-
return api.one('submissionss', body.id).customPUT(body)
111+
return api.one('submissions', body.id).customPUT(body)
111112
.then(function(response) {
112113
$log.info('Successfully updated file statuses');
113114
recordCompletedSubmission(response.plain(), progressCallback);
@@ -130,6 +131,7 @@
130131
.catch(function(err) {
131132
$log.info('Error in starting processing');
132133
$log.error(err);
134+
progressCallback.call(progressCallback, 'ERROR', err);
133135
});
134136
}
135137
};

0 commit comments

Comments
 (0)