fix: 403 error error when uploading (#2598)

Co-authored-by: 김종성 <ziippy@naver.com>
pull/2634/head
M A E R Y O 2023-08-09 05:29:03 +09:00 committed by GitHub
parent ff1e0b8185
commit 289c8e6f32
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -40,7 +40,7 @@ func tusPostHandler() handleFunc {
return errToStatus(err), err return errToStatus(err), err
} }
fileFlags := os.O_CREATE fileFlags := os.O_CREATE | os.O_WRONLY
if r.URL.Query().Get("override") == "true" { if r.URL.Query().Get("override") == "true" {
fileFlags |= os.O_TRUNC fileFlags |= os.O_TRUNC
} }