summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarin Ivanov <[email protected]>2025-06-27 19:39:27 +0300
committerMarin Ivanov <[email protected]>2025-06-27 19:39:27 +0300
commit676c2d47ea03dd531c550c502cc43761e436a680 (patch)
tree1bd68a12365e9caee8abc74c7891721ea974302a
parent9608d6c132df1accbd67d8e04657928d2018c3ca (diff)
increase upload limit to 83MB
-rw-r--r--main.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.go b/main.go
index 8c02dd3..7476143 100644
--- a/main.go
+++ b/main.go
@@ -103,7 +103,7 @@ func (s *Server) createRandomFilename(ext string) (*os.File, string, error) {
}
func (s *Server) formPost(w http.ResponseWriter, r *http.Request) {
- r.ParseMultipartForm(10 << 20) // 10MB
+ r.ParseMultipartForm(10 << 23) // 83MB
mimeType := r.Form.Get("mimetype")
ext := ""