mlabs-haskell / nft-marketplace-server

2 stars 2 forks source link

Size limit for image uploads #26

Closed nrutledge closed 2 years ago

nrutledge commented 2 years ago

If there isn't already a limit in place, we should add a configurable file size limit to prevent extremely large images from being uploaded.

A good default limit would be 100 MB (I believe this is the limit for both Rarible and OpenSea).

t4ccer commented 2 years ago

https://github.com/mlabs-haskell/nft-marketplace-server/blob/main/src/Main.hs#L54-L58

There is a limit of 2MB, it's not configurable though

nrutledge commented 2 years ago

@t4ccer 2 MB is definitely too small. Currently artists are being told by Luke that they can provide up to 100 MB.