Project

General

Profile

[Solved] Cannot attach files larger than 1048576 bytes

Added by Udo Hain over 3 years ago

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?

BR, Udo


Replies (4)

RE: Cannot attach files larger than 1048576 bytes - Added by Bernhard Rohloff over 3 years ago

Hi Udo,

the maximum allowed upload size can be changed in the administration menu. You find it under Administration -> settings -> files.

Kind regards,

Bernhard

RE: Cannot attach files larger than 1048576 bytes - Added by Udo Hain over 3 years ago

Dear Bernhard,

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!

BR, Udo

RE: Cannot attach files larger than 1048576 bytes - Added by Bernhard Rohloff over 3 years ago

Udo Hain wrote:

Dear Bernhard,

have you read my post? ...

BR, Udo

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?

Perhaps something has screwed up in the browser/javascript world.
My tests where done with Firefox 81.

RE: Cannot attach files larger than 1048576 bytes - Added by Udo Hain over 3 years ago

Hi Bernhard,

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!

BR, Udo

    (1-4/4)