#Adding images to locked folder via the explorer view | API usage for workaround

1 messages · Page 1 of 1 (latest)

burnt wyvern
#

Hello, sry if Discord is not for feature requests, but there is something which I would suggest to implement to raise productivity.

I am using immich with external libraries and want to lock an amount of Images from it (folder based) - the best would be if there is a possibility to automatically lock specific folders from external libraries like the exclude-folder-list in scan settings, but I don't know how difficult this is to implement.

Another option would be the explorer view:
You can open it by the URL "immich.domain.tld/folders") and there you can browse into the folders, but when you are selecting images from here, you don't have the ability to send them to the locked folder, like in the timelime view.

This would help me so much - is there something planned?
I think this would make much sense for people who are working with presorted external libraries.


I played around some hours to code a PHP curl script to realize this feature for on-demand-use, it is working good. But I also realized that the API method "getAssetsByOriginalPath" doesn't show the assets which are locked or hidden, which is a bit strange, because in the API documentation the visibility-key shows all possible values it can have and locked/hidden are two of them.
As I understand, it should be possible at the moment with the searchAssets method to find locked assets, but I only get the following error (using an API key from the external library owner (=admin) with all the permissions I could chose in the GUI):

[message] => Elevated permission is required
[error] => Unauthorized
[statusCode] => 401

lusty zenithBOT
#

:wave: Hey @burnt wyvern,

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

References

#

Checklist

I have...

  1. :ballot_box_with_check: verified I'm on the latest release(note that mobile app releases may take some time).
  2. :ballot_box_with_check: read applicable release notes.
  3. :ballot_box_with_check: reviewed the FAQs for known issues.
  4. :ballot_box_with_check: reviewed Github for known issues.
  5. :ballot_box_with_check: tried accessing Immich via local ip (without a custom reverse proxy).
  6. :ballot_box_with_check: uploaded the relevant information (see below).
  7. :ballot_box_with_check: tried an incognito window, disabled extensions, 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)

Information

In order to be able to effectively help you, we need you to provide clear information to show what the problem is. The exact details needed vary per case, but here is a list of things to consider:

  • Your docker-compose.yml and .env files.
  • Logs from all the containers and their status (see above).
  • All the troubleshooting steps you've tried so far.
  • Any recent changes you've made to Immich or your system.
  • Details about your system (both software/OS and hardware).
  • Details about your storage (filesystems, type of disks, output of commands like fdisk -l and df -h).
  • The version of the Immich server, mobile app, and other relevant pieces.
  • Any other information that you think might be relevant.

Please paste files and logs with proper code formatting, and especially avoid blurry screenshots.
Without the right information we can't work out what the problem is. Help us help you ;)

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

deep bronze
#

#1673

lusty zenithBOT
burnt wyvern
#

I checked the searchAssets method and for all other criteria than "visibility: locked" it is working, just this criteria is a problem?

my curl (directly executed in the immich docker container):
curl -X POST -L "172.10.10.16:2283/api/search/metadata" -H "Content-Type: application/json" -H "Accept: application/json" -H "x-api-key: some-api-key-with-all-permissions" -d '{"visibility":"locked"}'

my result:
{"message":"Elevated permission is required","error":"Unauthorized","statusCode":401,"correlationId":"pqgysjub"}

Can I enable any logging to analyze the problem further with the correlationId?

grand edge
#

Locked is the private folder. You need to auth with the PIN code

burnt wyvern
#

and how do I do this in an api-call?

grand edge
#

It’s documented in the API docs

#

I don’t have it on hand

burnt wyvern
#

ok thank you I search for it+

#

found it, I will try it out 😄

burnt wyvern