Media Upload Fix
This commit is contained in:
1 parent
3b4d5e4080
commit
3c669c7e26
3 files changed
+119
-41
No files matched your search
@@ -24,7 +24,7 @@ func (rt *Router) UploadSimulationResource(w http.ResponseWriter, r *http.Reques
|
||||
return
|
||||
}
|
||||
|
||||
err = r.ParseMultipartForm(500 << 20) // 500 MB max memory/file bounds
|
||||
err = r.ParseMultipartForm(32 << 20) // 32 MB max memory bounds, rest spills to disk
|
||||
if err != nil {
|
||||
http.Error(w, "Error parsing form: "+err.Error(), http.StatusBadRequest)
|
||||
return
|
||||
|
||||
Reference in new issue
Block a user