Skip to content

Commit

Permalink
Only connect to socket instead of POST when there already is a file r…
Browse files Browse the repository at this point in the history
…esponse
  • Loading branch information
Murderlon committed Nov 11, 2021
1 parent 0f1d625 commit 6c5ef1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/@uppy/tus/src/index.js
Expand Up @@ -366,7 +366,7 @@ module.exports = class Tus extends BasePlugin {
this.uppy.emit('upload-started', file)
this.uppy.log(file.remote.url)

if (file.serverToken) {
if (file.serverToken && file.response) {
return this.connectToServerSocket(file)
}

Expand Down

0 comments on commit 6c5ef1b

Please sign in to comment.