fix: ignore exists check if we are in partial/parallel upload mode
This commit is contained in:
parent
90c8ce39eb
commit
b267ace017
|
@ -116,7 +116,7 @@ func (t *TusHandler) Init() error {
|
||||||
|
|
||||||
exists, _ := t.UploadExists(hook.Context, decodedHash.HashBytes())
|
exists, _ := t.UploadExists(hook.Context, decodedHash.HashBytes())
|
||||||
|
|
||||||
if exists {
|
if exists && !hook.Upload.IsPartial {
|
||||||
return blankResp, blankChanges, errors.New("file is already being uploaded")
|
return blankResp, blankChanges, errors.New("file is already being uploaded")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue