Skip to content

Commit

Permalink
fix max memmory file
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexeyzem committed Dec 18, 2024
1 parent 565e242 commit 733ce44
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/fileService/controller/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ func (fc *FileController) Download(w http.ResponseWriter, r *http.Request) {
fc.responder.LogError(my_err.ErrInvalidContext, "")
}

err := r.ParseMultipartForm(10 * (10 << 20)) // 100Mbyte
err := r.ParseMultipartForm(100 * (1 << 23)) // 100Mbyte
if err != nil {
fc.responder.ErrorBadRequest(w, my_err.ErrToLargeFile, reqID)
return
Expand Down

0 comments on commit 733ce44

Please sign in to comment.