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

Implement support for getting thumbnails from Nextcloud (and maybe OwnCloud. I haven't tested it). #2

Open
squirtla83 opened this issue Dec 2, 2020 · 0 comments

Comments

@squirtla83
Copy link

Implement support for getting thumbnails from Nextcloud (and maybe OwnCloud. I haven't tested it).

Nextcloud WebDAV access is done through remote.php/dav/files/ while thumbnails are accessed through index.php/core/preview.png, so by checking if the baseURL contains remote.php/dav/files/ we can know if it's a Nextcloud server. If it is, we can replace that with the preview URL.

Also has a minor fix for the existing yandex thumbnail support where file extensions were checked case-sensitively.

Closes #165

Originally posted by @isvvc in amosavian/FileProvider#166

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant