publiclab/mapknitter

Limit file upload size

オープン

#328 opened on 2019/02/07

 (2 件のコメント) (0 件のリアクション) (0 人の担当者)Ruby (203 件のフォーク)auto 404
bughelp wanted

Repository metrics

Stars
 (274 個のスター)
PR merge metrics
 (PR metrics pending)

説明

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!

コントリビューターガイド