Skip to content

Images and video don't upload #111

Closed

Description

@ados8

I know there has been a previous raised issue here, however the issue is still there on 0.2.7.
I can attempt any image or video upload from public URL or internal IP and it fails.
Does this regardless of Chromium or Firefox.
Having to place URLs to images which is very clunky, will this be fixed soon?

Activity

  1. SteveSmall2024 commented on Jul 23, 2024

    @SteveSmall2024

    I had the same problem and following points fixed it:

    1. If you use bind mounts instead of named volumes for the "/app/data/storage" volume, you need to set the User UID /GID in Docker Compose file: on host's console use "id" to find out the UID and GID of root (or the user that runs docker) and add the parameter user: "{UID}:{GID}" to the "docmost" service in docker compose. Otherwise the app cannot create the necessary directories and files under the bind-mount directory. If you use named volumes it should work without the parameter.
    2. If you use NGINX-Proxy-Manager for SSL and public URL, you need to activate "Websockets Support" on the "Details" tab of your proxy host. Without that I had problems to upload files and import md/html-based content.

    Hopefully this helps!

    By the way, a note to the development team: VERY COOL TOOL!!!! Thanks a lot for this great work!!!

  2. hao159 commented on Jul 24, 2024

    @hao159

    just type: sudo chown -R user:user ./path-to-docmost-data

    (user runer docker)

  3. ados8 commented on Jul 25, 2024

    @ados8
    Author

    Can't believe I didn't think of that, I had the GID and UID set but the docker ignores it.
    Checked and runs as 1000:1000 so a permission tweak and now it works.
    Thanks @SteveSmall2024

  4. Rom0067 commented on Oct 13, 2024

    @Rom0067

    I had the same problem and following points fixed it:

    1. If you use bind mounts instead of named volumes for the "/app/data/storage" volume, you need to set the User UID /GID in Docker Compose file: on host's console use "id" to find out the UID and GID of root (or the user that runs docker) and add the parameter user: "{UID}:{GID}" to the "docmost" service in docker compose. Otherwise the app cannot create the necessary directories and files under the bind-mount directory. If you use named volumes it should work without the parameter.
    2. If you use NGINX-Proxy-Manager for SSL and public URL, you need to activate "Websockets Support" on the "Details" tab of your proxy host. Without that I had problems to upload files and import md/html-based content.

    Hopefully this helps!

    By the way, a note to the development team: VERY COOL TOOL!!!! Thanks a lot for this great work!!!

    Im sorry to necro a old issue but can you please show me an example of adding uid gid to a docker compose file? I tried everything I can think of and I keep getting permission errors.... I like using bind mounts because I find it easier to back up. I would really appreciate the help.

  5. SteveSmall2024 commented on Oct 14, 2024

    @SteveSmall2024

    @Rom0067 Here is an excerpt of my docker compose.
    In my case, I run it as a Stack in Portainer:

        (...)
        ports:
          - "3000:3000"
        restart: unless-stopped
    
        # Determine UID and GID of the root User on the console via command "id" 
        # You must be logged in or sudo'ed as root or the user who runs Portainer!
        # Example Result of "id" on console:       uid=0(root) gid=0(root) Gruppen=0(root)
        user: "0:0"
    
        volumes:
          - /yourpathto/docmost/app_storage:/app/data/storage
        (...)
    

    Hope that helps!

  6. Rom0067 commented on Oct 14, 2024

    @Rom0067

    @Rom0067 Here is an excerpt of my docker compose.
    In my case, I run it as a Stack in Portainer:

        (...)
        ports:
          - "3000:3000"
        restart: unless-stopped
    
        # Determine UID and GID of the root User on the console via command "id" 
        # You must be logged in or sudo'ed as root or the user who runs Portainer!
        # Example Result of "id" on console:       uid=0(root) gid=0(root) Gruppen=0(root)
        user: "0:0"
    
        volumes:
          - /yourpathto/docmost/app_storage:/app/data/storage
        (...)
    

    Hope that helps!

    Thank you for the reply. I tried doing user: 1000:1000, user: 0:0 but neither worked. I ended up removing bind mounts in compose file and created the default volumes. The permission errors went away and it's working fine.

  7. kevinjalbert commented on Oct 22, 2024

    @kevinjalbert

    Just adding here, I was coming at this from Unraid.

    I saw (https://forums.unraid.net/topic/170592-support-devzwf-docmost/), which seems to suggest some improvements to either the dockerfile or the template.

    I just chmod 777 the directory to get past this and get it working, so I can test out Docmost.

  8. added a commit that references this issue on Dec 24, 2025
  9. added a commit that references this issue on Jun 21, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions