[Solved] Cannot attach files larger than 1048576 bytes
I have installed Redmine 4.1.1.stable using docker (image redmine:latest) and now have the problem that I am not able to attach files lager than 1048576 bytes. Increasing file size to 1048577 leads to an error. However, the behavior is somehow strange.
There is this option "Maximum attachment size". If I set this value to for instance 1 KB and try to upload a larger file, then I get a pop-up message telling me that the file size is too big and I cannot attach files larger than 1 KB. If I set this value to for instance 10000 KB, then I just see the string "error" in the file name field (cf. attachment). In that case (limit set to 10000 KB) I can upload files up to 1048576 bytes. There seems to be this hard limit set somewhere. Does anyone have a clue where to change this?
Screenshot from 2020-10-06 17-20-44.png (14.9 KB)
the maximum allowed upload size can be changed in the administration menu. You find it under Administration -> settings -> files.
have you read my post? I have already set the "Maximum attachment size" (cf. attached image), but this does not help! I would appreciate an answer which handles the original topic, thank you!
Screenshot from 2020-10-07 08-14-45.png (59.7 KB)
Udo Hain wrote:
have you read my post? ...
Sorry, it was a bit early (pre first coffee) this morning. I've spun up an instance of redmine:latest and tried to reproduce your case.
So what I've done so far is...
- pull and spin up redmine:latest with:
docker run redmine:latest -p 3000:3000
- logged in as admin
- loaded default settings
- created a test project
- checked upload size was 1KB
- created a new issue and tried to load files smaller and bigger 1KB -> worked as expected
- set max upload size to 10000KB
- created a new issue and tried to load files smaller and bigger 10000KB -> worked as expected
I played around with the upload file settings but I couldn't reproduce your issue in any way.
Did I miss any step or setup detail?
My tests where done with Firefox 81.
thank you for that hint. In fact it was not a problem of Redmine itself, but the nginx configuration of my dokku installation. The solution can be found here: https://stackoverflow.com/questions/46459678/dokku-413-request-entity-too-large . Now it works and I can upload larger files!