Skip to content

Commit

Permalink
Merge pull request transloadit#9 from LexPredict/dev
Browse files Browse the repository at this point in the history
save
  • Loading branch information
DimaKogut authored Jun 3, 2020
2 parents dda408b + 524d459 commit 3416cec
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "uppy-build",
"version": "1.0.1",
"version": "1.0.2",
"description": "Extensible JavaScript file upload widget with support for drag&drop, resumable uploads, previews, restrictions, file processing/encoding, remote providers like Instagram, Dropbox, Google Drive, S3 and more :dog:",
"lint-staged": {
"*.js": "eslint",
Expand Down
3 changes: 2 additions & 1 deletion packages/@uppy/tus/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ module.exports = class Tus extends Plugin {
const { message } = err;
if (message.includes("status")) {
const status_message = JSON.parse(message.substring(message.indexOf('{'), message.lastIndexOf('}') + 1));
console.log(status);
console.log(status_message);

file[status_message.status] = true

Expand All @@ -209,6 +209,7 @@ module.exports = class Tus extends Plugin {
this.uppy.emit("upload-pending", file, uploadResp);
}
else {
console.log(file);
this.uppy.emit('upload-success', file, uploadResp)
}
}
Expand Down

0 comments on commit 3416cec

Please sign in to comment.