allow 10mb pdf

Ted Unangst 4 years ago
parent ec30e2b3fb
commit b2d21bfecf

@ -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)

Loading…
Cancel
Save