fix: 403 error error when uploading (#2598)
Co-authored-by: 김종성 <ziippy@naver.com>
This commit is contained in:
1 parent
ff1e0b8185
commit
289c8e6f32
1 file changed
+1
-1
@@ -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
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user