plane icon indicating copy to clipboard operation
plane copied to clipboard

[bug]: Can't upload attachments, always more than 5Mb on self-hosted server

Open mregni opened this issue 1 year ago β€’ 2 comments

Is there an existing issue for this?

  • [X] I have searched the existing issues

Current behavior

When I try to add an image to the description box it will load inifitly. In the browser console the call to /api/workspaces/uping/file-assets/ return "File too large. Size should not exceed 5 MB.". That is strange because the image itself is only 468kB in size (see second screenshot)

image image

When I try to upload an attachment I get a nice error toaster with the same message. image

Any idea how this could be possible? I enabled debug logging but can't find much

POST - /api/workspaces/uping/file-assets/ of Queries: 1
GET - /api/workspaces/xxxxxxxxx/projects/983fc856-7f9e-4ffa-901b-7cd8d22b421d/issues/9b9f6656-d89a-42a6-a07d-1d1d5618f782/history/ of Queries: 4
172.32.0.19:33576 - "GET /api/workspaces/xxxxxxx/projects/983fc856-7f9e-4ffa-901b-7cd8d22b421d/issues/9b9f6656-d89a-42a6-a07d-1d1d5618f782/history/ HTTP/1.1" 200
Bad Request: /api/workspaces/uping/file-assets/
172.32.0.19:33526 - "POST /api/workspaces/uping/file-assets/ HTTP/1.1" 400

Ow, I'm running version v0.13.2 in docker with docker-compose.

Steps to reproduce

  1. Create a new issue
  2. Add attachment or drag file in description box
  3. File to large error is returned (see screenshots above)

Browser

Google Chrome

Version

Self-hosted

mregni avatar Oct 23 '23 18:10 mregni

Not sure if it's related, but I have the same issue while uploading a profile picture for my user or for workspace as well.

mregni avatar Oct 24 '23 07:10 mregni

Sorry you're facing this issue. This seems like a bug. @pablohashescobar will be shortly fixing this issue.

vihar avatar Nov 11 '23 18:11 vihar

Hey @mregni, this should be fixed in the current latest version. Let us know if you are still finding this issue.

pablohashescobar avatar Jan 02 '24 07:01 pablohashescobar

i pull last code and it still error, can not upload

truongnat avatar Feb 23 '24 09:02 truongnat