Are you using Firefox on a Mac? I’m curious if the result is the same on other browsers or older versions of the browser.
Was the action a file drag-and-drop operation or was it a copy-paste operation?
Does this discussion help at all? I had similar trouble recently because I had a mounted a host volume for the uploads but had not set the ownership to UID 10000. It was failing somehow even though the chmod permissions should have allowed any user to write to the directory. Setting the uid to 10000 solved it in my case, but I do not know if I was receiving the same error message you are. It’s worth a try though.
thanks for joining in. I tried different browsers (Firefox, Chrome and Safari). UIDs are consistent. I uploaded using the button/dialogue and ‘drag and drop’. All with the same result.
I deployed HedgeDoc 1.9.2 locally using Docker Compose as detailed below. I did not encounter any issues with photo uploads using the drag and drop or using the upload button. The test environment is Ubuntu 20.04.3 and Firefox 95.0.1 (64-bit).
Directory contents:
$ ls -lan
total 20
drwxrwxr-x 3 1000 1000 4096 Jan 7 09:45 .
drwxrwxr-x 4 1000 1000 4096 Jan 7 08:23 ..
-rw-r--r-- 1 1000 1000 448 Jan 7 09:55 docker-compose.yaml
-rw-rw-r-- 1 1000 1000 1189 Jan 7 09:48 .env
drwxrwxr-x 4 1000 1000 4096 Jan 7 09:45 volumes
$ sudo ls -lan volumes/*
volumes/db:
total 128
drwx------ 19 70 1000 4096 Jan 7 09:55 .
drwxrwxr-x 4 1000 1000 4096 Jan 7 09:45 ..
drwx------ 6 70 70 4096 Jan 7 09:45 base
drwx------ 2 70 70 4096 Jan 7 09:56 global
...
-rw------- 1 70 70 94 Jan 7 09:55 postmaster.pid
volumes/uploads:
total 3716
drwxrwxr-x 2 10000 1000 4096 Jan 7 09:57 .
drwxrwxr-x 4 1000 1000 4096 Jan 7 09:45 ..
-rw-r--r-- 1 10000 65534 3793675 Jan 7 09:57 ba99f11e67a3ba1faee674f00.jpg
I’m glad you got things working, but my curiosity is piqued. This error occurs at this line, indicating that somehow the file information in the HTML form data was not sent properly in the HTTP request, which seems like a browser-side problem. Unfortunately I do not have experience debugging Hedgedoc so I’m just trying to make educated guesses.