Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


    Cloudron Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular

    Solved Attaching 5 MB image to task results in "413 Request Entity Too Large"

    Vikunja
    3
    6
    173
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • canadaduane
      canadaduane last edited by

      I get the following error when trying to attach/upload a 4.6 MB image to a Vikunja task:

      413 Request Entity Too Large
      nginx/1.18.0 (Ubuntu)
      

      21c74174-17db-4f16-8647-dcdd41d0a452-image.png

      Reading a few other threads here related to this error message (but for different apps) one of the recommendations was to increase the RAM. I did so, from 256 MB to 1 GB; however, the error remains when trying to upload.

      Any suggested solutions from here?

      1 Reply Last reply Reply Quote 0
      • canadaduane
        canadaduane last edited by

        A couple of interesting notes:

        • Reducing the size of the image to ~2 MB does not help
        • But I can upload an image that is about 100KB
        1 Reply Last reply Reply Quote 0
        • subven
          subven last edited by subven

          Take a look at the config.yml first:

          files:
            # The path where files are stored basepath: 
          /app/data/files/ # relative to the binary
            # The maximum size of a file, as a human-readable string.
            # Warning: The max size is limited 2^64-1 bytes due to the underlying datatype
            maxsize: 20MB
          
          canadaduane 1 Reply Last reply Reply Quote 0
          • canadaduane
            canadaduane @subven last edited by

            @subven Yes, I did take a look there and my yml is still set to the default 20 MB. Is that what you mean for me to check for?

            girish 1 Reply Last reply Reply Quote 0
            • girish
              girish Staff @canadaduane last edited by

              @canadaduane think there is a bug in the nginx config of the package. I have fixed it now, can you please update and try?

              canadaduane 1 Reply Last reply Reply Quote 1
              • canadaduane
                canadaduane @girish last edited by

                @girish It's fixed! Thank you very much.

                1 Reply Last reply Reply Quote 2
                • Topic has been marked as a question  nebulon nebulon 
                • Topic has been marked as solved  nebulon nebulon 
                • First post
                  Last post
                Powered by NodeBB