allow 10mb pdf
This commit is contained in:
parent
6a7f2b4a6c
commit
e6890aa533
2
web.go
2
web.go
|
@ -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…
Reference in New Issue