Skip to content

Commit

Permalink
fix: 403 error error when uploading (#2598)
Browse files Browse the repository at this point in the history
Co-authored-by: 김종성 <ziippy@naver.com>
  • Loading branch information
maeryo and ziippy committed Aug 8, 2023
1 parent ff1e0b8 commit 289c8e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion http/tus_handlers.go
Expand Up @@ -40,7 +40,7 @@ func tusPostHandler() handleFunc {
return errToStatus(err), err
}

fileFlags := os.O_CREATE
fileFlags := os.O_CREATE | os.O_WRONLY
if r.URL.Query().Get("override") == "true" {
fileFlags |= os.O_TRUNC
}
Expand Down

0 comments on commit 289c8e6

Please sign in to comment.