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!

貢獻者指南