fix: don't error if IsFinal

This commit is contained in:
Derrick Hammer 2024-03-28 18:08:13 -04:00
parent a16390ccc1
commit d810cf0848
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 1 additions and 1 deletions

View File

@ -116,7 +116,7 @@ func (t *TusHandler) Init() error {
exists, _ := t.UploadExists(hook.Context, decodedHash.HashBytes())
if exists && !hook.Upload.IsPartial {
if exists && !hook.Upload.IsPartial && !hook.Upload.IsFinal {
return blankResp, blankChanges, errors.New("file is already being uploaded")
}