boston-library / commonwealth-vlr-engine

Commonwealth-VLR-Engine is a Rails engine for creating Blacklight apps that provide access to content from Solr/Fedora, packaging a number of feature-rich enhancements and modifications.
Apache License 2.0
8 stars 2 forks source link

don't allow downloads of massive files #73

Open ebenenglish opened 1 year ago

ebenenglish commented 1 year ago

In some cases, items containing many high-resolution images can be downloaded (commonwealth:gx41q467q for example). But the download can be > 1 GB, and in some cases may be > 15 GB.

These types of requests will kill the web server.

We should remove download links for files (single or zip) if the size is greater than 1 GB.

We could add some text in these cases directing the user to contact us via the feedback form to request the images.