mirror of
https://github.com/transloadit/uppy.git
synced 2026-07-24 02:38:58 +00:00
replace this.getState().files with this.uppy.getState().files (#4167)
* replace this.getState().files with this.uppy.getState.files * We actually want to check if the file is NOT present
This commit is contained in:
parent
aa2ffa589b
commit
618cc69e61
3 changed files with 3 additions and 3 deletions
|
|
@ -287,7 +287,7 @@ export default class MiniXHRUpload {
|
|||
}
|
||||
const serverToken = await this.#queueRequestSocketToken(file)
|
||||
|
||||
if (this.getState().files[file.id]) return undefined
|
||||
if (!this.uppy.getState().files[file.id]) return undefined
|
||||
|
||||
this.uppy.setFileState(file.id, { serverToken })
|
||||
return this.connectToServerSocket(this.uppy.getFile(file.id))
|
||||
|
|
|
|||
|
|
@ -474,7 +474,7 @@ export default class Tus extends BasePlugin {
|
|||
}
|
||||
const serverToken = await this.#queueRequestSocketToken(file)
|
||||
|
||||
if (this.getState().files[file.id]) return undefined
|
||||
if (!this.uppy.getState().files[file.id]) return undefined
|
||||
|
||||
this.uppy.setFileState(file.id, { serverToken })
|
||||
return this.connectToServerSocket(this.uppy.getFile(file.id))
|
||||
|
|
|
|||
|
|
@ -385,7 +385,7 @@ export default class XHRUpload extends BasePlugin {
|
|||
}
|
||||
const serverToken = await this.#queueRequestSocketToken(file)
|
||||
|
||||
if (this.getState().files[file.id]) return undefined
|
||||
if (!this.uppy.getState().files[file.id]) return undefined
|
||||
|
||||
this.uppy.setFileState(file.id, { serverToken })
|
||||
return this.connectToServerSocket(this.uppy.getFile(file.id))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue