publiclab/mapknitter

Limit file upload size

Aberta

#328 aberto em 7 de fev. de 2019

 (2 comentários) (0 reação) (0 responsável)Ruby (203 forks)auto 404
bughelp wanted

Métricas do repositório

Stars
 (274 estrelas)
Métricas de merge de PR
 (Métricas PR pendentes)

Description

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!

Guia do colaborador