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 }