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


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps - Status | Demo | Docs | Install
  1. Cloudron Forum
  2. Docmost
  3. [Docmost - Unstable] File uploads failing with "Error processing file upload"

[Docmost - Unstable] File uploads failing with "Error processing file upload"

Scheduled Pinned Locked Moved Solved Docmost
5 Posts 4 Posters 206 Views 4 Watching
  • 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.
  • H Offline
    H Offline
    hakunamatata
    wrote last edited by hakunamatata
    #1

    I am testing the new unstable release of Docmost and encountering a consistent 400 Bad Request error when attempting to use the file attachment feature in the editor. The upload fails immediately, regardless of file size (tested with files as small as 30kb).

    Environment:

    Host: Cloudron 9.1.3
    App: Docmost 0.70.3

    Steps to Reproduce:

    1. Install the unstable Docmost app.
    2. Open any document and attempt to insert an attachment or image.
    3. Select a small file (e.g., 30kb).
    4. The UI throws an upload error, "Error processing file upload."

    App Logs:
    The logs show a clear BadRequestException indicating the storage backend is either unconfigured or inaccessible:

    2026-03-22T16:08:56Z {"level":"error","time":"2026-03-22T16:08:56.462Z","pid":92,"hostname":"914b186f-aa30-4c30-929d-c63219d35ecf","req":{"method":"POST","url":"/api/files/upload","ip":"X.X.X.X","userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/26.3.1 Safari/605.1.15"},"context":"AttachmentController","err":{"type":"BadRequestException","message":"Error uploading file to drive","stack":"BadRequestException: Error uploading file to drive\n    at AttachmentService.uploadToDrive (/app/code/apps/server/dist/core/attachment/services/attachment.service.js:176:19)\n    at async AttachmentService.uploadFile (/app/code/apps/server/dist/core/attachment/services/attachment.service.js:68:9)\n    at async AttachmentController.uploadFile (/app/code/apps/server/dist/core/attachment/attachment.controller.js:89:34)","response":{"type":"Object","message":"Error uploading file to drive","stack":"","error":"Bad Request","statusCode":400},"status":400,"options":{},"name":"BadRequestException"},"msg":"Error uploading file to drive"}
    2026-03-22T16:08:56Z {"level":"error","time":"2026-03-22T16:08:56.462Z","pid":92,"hostname":"914b186f-aa30-4c30-929d-c63219d35ecf","req":{"method":"POST","url":"/api/files/upload","ip":"X.X.X.X","userAgent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/26.3.1 Safari/605.1.15"},"context":"AttachmentService","msg":"Error uploading file to drive:"}
    

    Expected Behavior:
    The app should successfully accept the file and store it in the designated local storage path within /app/data/.

    1 Reply Last reply
    3
    • J Offline
      J Offline
      joseph
      Staff
      wrote last edited by
      #2

      @hakunamatata should be fixed in latest package. thanks for reporting

      1 Reply Last reply
      3
      • H Offline
        H Offline
        hakunamatata
        wrote last edited by
        #3

        Updated and confirm that it is working, thank you!

        1 Reply Last reply
        2
        • nebulonN nebulon marked this topic as a question
        • nebulonN nebulon has marked this topic as solved
        • M Offline
          M Offline
          michaeladam
          wrote last edited by
          #4

          I just set up docmost on my server via docker compose behind a nginx.
          Everything seems to be working except for file uploads (and draw.io, etc.)

          version v0.80.0

          {
            "level":"error",
            "time":"2026-04-15T21:20:59.021Z",
            "pid":45,
            "hostname":"c3f990ab1bef",
            "req":{
              "method":"POST",
              "url":"/api/files/upload",
              "ip":"172.20.0.1",
              "userAgent":"Mozilla/5.0 (X11; Linux x86_64; rv:149.0) Gecko/20100101 Firefox/149.0"
            },
            "context":"AttachmentController",
            "err":{
              "type":"BadRequestException",
              "message":"Error uploading file to drive",
              "stack":"BadRequestException: Error uploading file to drive\n    at AttachmentService.uploadToDrive (/app/apps/server/dist/core/attachment/services/attachment.service.js:176:19)\n    at async AttachmentService.uploadFile (/app/apps/server/dist/core/attachment/services/attachment.service.js:68:9)\n    at async AttachmentController.uploadFile (/app/apps/server/dist/core/attachment/attachment.controller.js:89:34)",
              "response":{
                "type":"Object",
                "message":"Error uploading file to drive",
                "stack":"",
                "error":"Bad Request",
                "statusCode":400
              },
              "status":400,
              "options":{
                
              },
              "name":"BadRequestException"
            },
            "msg":"Error uploading file to drive"
          }
          
          1 Reply Last reply
          1
          • jamesJ Offline
            jamesJ Offline
            james
            Staff
            wrote last edited by james
            #5

            Hello @michaeladam and welcome to the Cloudron forum

            Yes, the Cloudron forum.

            Since you have stated:

            @michaeladam said:

            I just set up docmost on my server via docker compose behind a nginx.

            Unfortunately you are not a Cloudron user, thus we can't really provide you with any help here.
            We fixed this issue by configuring the following https://git.cloudron.io/packages/docmost-app/-/commit/afc7e7df88589c0cfdfdf60947edace8e2249b3f

            Maybe you should try Cloudron? It makes self-hosting @docmost a lot easier.

            1 Reply Last reply
            0

            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

            With your input, this post could be even better 💗

            Register Login
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Bookmarks
            • Search