OpenSourcePolitics / decidim

Fork of Decidim
http://www.decidim.org
GNU Affero General Public License v3.0
20 stars 4 forks source link

Increase files size limits to 60Mo #233

Closed leokante closed 5 years ago

leokante commented 6 years ago

Is your feature request related to a problem? Please describe. A client from MEL absolutely needs to upload heavy files in their consultations - files that can be from 30Mo to100Mo. I haven't succeeded to compress the document enough (i tried with Adobe) to fit under the 10Mo limit.

As a user I want to upload heavy files in order to be compliant with the law regarding public consultation.

Describe the solution you'd like As a user, I want to upload heavy files. Is it possible to increase the files size limit on attachment?

Describe alternatives you've considered I haven't succeeded to compress the document enough (i tried with Adobe) to fit under the 10Mo limit.

Additional context Those files aren't created by the client. usually it comes from their private partners. They can not really deal with the issue of the size of thoses files.

Does this issue could impact on users private data? No.

virgile-dev commented 6 years ago

Looking forward to have @moustachu 's perspective on this. They suggested that they could have files that could weight several gigas. We need to find some kind of middle ground here and understand the implication for the server.

leokante commented 6 years ago

Here is the kind of file that some clients nead to upload : http://www.lillemetropole.fr/files/live/sites/lmcu/files/docs/DIALOGUE-CITOYEN/Lille%20saint%20sauveur/EI_Saint_Sauveur-ilovepdf-compressed.pdf

armandfardeau commented 6 years ago

this is a typical case of high latency / large request. In carrierwave files, uploads are typically loaded in memory. Furthermore, we don't have a loader on the client side so this could be really costly to develop. I would recommend having a look at external services, AWS S3 or FTP for this usage.

moustachu commented 6 years ago

Please notes that we need to consider 2 domain for this issue :

Application :

Hosting / Server :

Given all these issues, I agree to :

virgile-dev commented 6 years ago

So to sum up, action map

Phase 1

Phase 2

moustachu commented 6 years ago

⚠️

Proposal attachments are not concerned by this enhancement because the validations involved are shared with the user side

It means that it will mainly be available for documents attached to a participatory process. (Other component might be impacted in the future if they use the admin attachment component but it's consistent with this enhancement)