Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Filesystem] Some filesystem adapter work with IDs instead of paths #322

Open
Elfangor93 opened this issue Jan 2, 2025 · 0 comments
Open
Labels
bug Something isn't working prio-low Fix is at low priority

Comments

@Elfangor93
Copy link
Member

Elfangor93 commented Jan 2, 2025

Some filesystems like Filesystem - DPMedia Google can not handle folder paths and filenames because the underlying api works with IDs instead of paths.

So this file path
/images/test_folder/example.jpg

is represented by the Google Drive API as
/1HZBOg4zvXHCN2JxlBWlzFzhDoK14wO41/1tAkJxsKd8ZEv59lg-nEVrYs1YbOZC_XE/1VQTPW51Y4qob7rRgvM9uTLNGZ8HQFaEJ.jpg

If we want to support this kind of filesystems, we need to map folder paths and file names to IDs. this would make further database columns in #__joomgallery and #__joomgallery_categories necessary.

path ID
images 1HZBOg4zvXHCN2JxlBWlzFzhDoK14wO41
test_folder 1tAkJxsKd8ZEv59lg-nEVrYs1YbOZC_XE
example.jpg 1VQTPW51Y4qob7rRgvM9uTLNGZ8HQFaEJ.jpg

List of ID based filesystem adapters

  • Google
  • Microsoft
  • Piwigo
@Elfangor93 Elfangor93 added bug Something isn't working prio-low Fix is at low priority labels Jan 2, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working prio-low Fix is at low priority
Projects
None yet
Development

No branches or pull requests

1 participant