fix: 403 error error when uploading (#2598)
Co-authored-by: 김종성 <ziippy@naver.com>pull/2634/head
parent
ff1e0b8185
commit
289c8e6f32
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue