allow 10mb pdf

This commit is contained in:
Ted Unangst 2020-04-24 13:48:35 -04:00
parent 6a7f2b4a6c
commit e6890aa533
1 changed files with 1 additions and 1 deletions

2
web.go
View File

@ -1461,7 +1461,7 @@ func submitdonk(w http.ResponseWriter, r *http.Request) (*Donk, error) {
ct := http.DetectContentType(data)
switch ct {
case "application/pdf":
maxsize := 1000000
maxsize := 10000000
if len(data) > maxsize {
log.Printf("bad image: %s too much pdf: %d", err, len(data))
http.Error(w, "didn't like your attachment", http.StatusUnsupportedMediaType)