[Docmost - Unstable] File uploads failing with "Error processing file upload"
-
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.3Steps to Reproduce:
- Install the unstable Docmost app.
- Open any document and attempt to insert an attachment or image.
- Select a small file (e.g., 30kb).
- 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/. -
Updated and confirm that it is working, thank you!
-
N nebulon marked this topic as a question
-
N nebulon has marked this topic as solved
-
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" } -
Hello @michaeladam and welcome to the Cloudron forum
Yes, the Cloudron forum.
Since you have stated:
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/afc7e7df88589c0cfdfdf60947edace8e2249b3fMaybe you should try Cloudron? It makes self-hosting @docmost a lot easier.
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