publiclab/mapknitter

Limit file upload size

开放

#328 创建于 2019年2月7日

 (2 条评论) (0 个反应) (0 位负责人)Ruby (203 个派生)auto 404
bughelp wanted

仓库指标

星标
 (274 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

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!

贡献者指南