fix: 403 error error when uploading (#2598)

Co-authored-by: 김종성 <ziippy@naver.com>
This commit is contained in:
M A E R Y Oand김종성 authored and GitHub committed 2023-08-08 22:29:03 +02:00
1 parent ff1e0b8185
commit 289c8e6f32
1 file changed
+1 -1
+1 -1
View File
@@ -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
}