From 289c8e6f32eb520cc711389f6b6a4ed94a73ecd4 Mon Sep 17 00:00:00 2001 From: M A E R Y O Date: Wed, 9 Aug 2023 05:29:03 +0900 Subject: [PATCH] fix: 403 error error when uploading (#2598) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: 김종성 --- 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 }