DumbDrop icon indicating copy to clipboard operation
DumbDrop copied to clipboard

Changing upload dir does not work

Open serversathome-personal opened this issue 1 year ago • 3 comments

when i change the upload directory to something on my NAS the files dont actually upload there.

To Reproduce Steps to reproduce the behavior:

  1. open dumbdrop in browser
  2. upload file
  3. navigate to directory on NAS using shell

Expected behavior the file should appear in the mount directory

Desktop (please complete the following information):

  • OS: fedora 42
  • Browser: firefox

Additional context docker compose file:

services:
  dumbdrop:
    image: dumbwareio/dumbdrop:latest
    container_name: dumbdrop
    ports:
      - 3010:3000
    volumes:
      - /mnt/bigdeal/configs/dumbdrop:/app/uploads
    environment:
      DUMBDROP_TITLE: Coorworks Dropbox
      MAX_FILE_SIZE: "100000"
      DUMBDROP_PIN: null
      AUTO_UPLOAD: "false"
      BASE_URL: http://10.99.0.200:3010

the directory /mnt/bigdeal/configs/dumbdrop has 777 permissions

logs do not show anything useful.

[INFO] 2025-06-07T09:34:09.923Z - Upload init request for: airvpnbubble.png
[WARN] 2025-06-07T09:34:09.924Z - Final destination file already exists: local_uploads/airvpnbubble.png. Generating unique name.
[INFO] 2025-06-07T09:34:09.925Z - Using unique final path: local_uploads/airvpnbubble (1).png
[INFO] 2025-06-07T09:34:09.927Z - Initialized persistent upload: 937db46cf966c1ba090ff1e6b65db981 for airvpnbubble.png -> local_uploads/airvpnbubble (1).png
[INFO] 2025-06-07T09:34:09.947Z - Upload 937db46cf966c1ba090ff1e6b65db981 (airvpnbubble.png) completed 10181 bytes.

serversathome-personal avatar Jun 07 '25 09:06 serversathome-personal

Hi, it seems you need to specify the environment variable UPLOAD_DIR: /app/uploads in order for it to not use the ./local_uploads fallback directory.

proog avatar Jun 09 '25 11:06 proog

worked! thanks so much!

serversathome-personal avatar Jun 09 '25 11:06 serversathome-personal

Hi, it seems you need to specify the environment variable UPLOAD_DIR: /app/uploads in order for it to not use the ./local_uploads fallback directory.

Thanks for the help @proog ! We've been distracted with the DumbAssets release and I forgot to loop back around to this!

abiteman avatar Jun 09 '25 11:06 abiteman