#Custom upload path per user

1 messages · Page 1 of 1 (latest)

wild flickerBOT
#

:wave: Hey @glacial ledge,

Thanks for reaching out to us. Please follow the recommended actions below; this will help us be more effective in our support effort and leave more time for building Immich immich.

References

Checklist

  1. :ballot_box_with_check: I have verified I'm on the latest release(note that mobile app releases may take some time).
  2. :ballot_box_with_check: I have read applicable release notes.
  3. :ballot_box_with_check: I have reviewed the FAQs for known issues.
  4. :ballot_box_with_check: I have reviewed Github for known issues.
  5. :ballot_box_with_check: I have tried accessing Immich via local ip (without a custom reverse proxy).
  6. :blue_square: I have uploaded the relevant logs, docker compose, and .env files using the buttons below or the /upload command.
  7. :ballot_box_with_check: I have tried an incognito window, cleared mobile app cache, logged out and back in, different browsers, etc. as applicable

(an item can be marked as "complete" by reacting with the appropriate number)

If this ticket can be closed you can use the /close command, and re-open it later if needed.

misty creek
#

Just mount the appropriate shares to the user folders under the library

glacial ledge
#

what's the default path to mount to?

/username

or there's something before?

#

I'll go eat and try in 30 minutes, thanks for answering! brb

shadow orchid
#

the files are current splitted into user already, if you look into the library folder, you will see different users

glacial ledge
#

I'll put back the storage config to default and upload a picture to see where it goes inside the pvc

#

this is what I see in pod shell which is the start of the path. I uploaded a picture but I can't find where it is freemanFail

#

ah I was in the wrong container

#

I think the path is:

/upload/library/username

#

actually the username folder is very complicated

#

is there a way to simplify it?

#

ah I guess it's this

shadow orchid
glacial ledge
#

is there anything else apart of my pictures in the library storage? because I could avoid an empty PVC with using emptyDir

glacial ledge
#

I think I must ommit the upload folder

#

actually after fiddlin' in the shell I think the path is much more complicated hehe /usr/src/app/upload/library/username

#

Ok so that seems to be the path but for some reason it's ignoring my storage label and it's uploading in the user-id folder it's creating instead.

#

any ideas why?

#

Ok so I might have found an issue where the uploaded media which move has failed isn't written in the logs. the file is kept in the upload folder 2023-12-11 18:53:09.855309-05:00"oldPath": "upload/upload/29fe234f-0ed8-459e-87d6-87b651cf5a73/8a424b65-8f8a-4462-93de-2d1ad09702f2.jpg", 2023-12-11 18:53:09.855326-05:00"newPath": "upload/library/freeman/2023/2023-01-03/20230103_120409.jpg"

#

could it be permissions?

#

yeah it was perms issue