From afbd5b122e8b4b2d9adcb8890ddf8e863502f3ee Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E1=84=80=E1=85=B5=E1=86=B7=E1=84=8C=E1=85=A9=E1=86=BC?= =?UTF-8?q?=E1=84=89=E1=85=A5=E1=86=BC?= Date: Wed, 2 Aug 2023 16:49:35 +0900 Subject: [PATCH] fix: 403 error error when uploading --- http/tus_handlers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/http/tus_handlers.go b/http/tus_handlers.go index 88b2bca1..15003cce 100644 --- a/http/tus_handlers.go +++ b/http/tus_handlers.go @@ -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 }