publiclab/mapknitter

Limit file upload size

Offen

#328 geöffnet am 07.02.2019

 (2 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)Ruby (203 Forks)auto 404
bughelp wanted

Repository-Metriken

Stars
 (274 Sterne)
PR-Merge-Metriken
 (PR-Metriken ausstehend)

Beschreibung

We currently allow users to upload files of size greater than 10 mb despite the fact that Image Upload tab carries note - "10mb max" for file size.

I uploaded the image of size 16.2 MB here- https://mapknitter.org/maps/lireille and no error was thrown.

The goal of this issue is to throw the error if file size if greater than 10mb.

Relevant issues: https://github.com/publiclab/mapknitter/issues/105 https://github.com/publiclab/mapknitter/issues/203

Thanks!

Contributor Guide