-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
OC.Previews utility in JS side telling what preview mimetypes are available #17543
Comments
This could go even further and provide utility methods to retrieve previews either for file icons or also real thumbnails. Basically move "lazyLoadPreviews" here but give it a better name. Then also find a way to override it for the public page. |
OK from me. Gallery already uses such an array to build the thumbnails list or the slideshow, so all good. |
@VicDeo didn't we add something recently to avoid 404s ? |
@PVince81 here you go https://github.com/owncloud/core/blob/master/core/js/config.php#L172 |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
@rullzer @oparoz as discussed, a utility class on the JS side that stores a list of mimetypes for which previews are supported.
This makes it possible to get rid of "isPreviewAvailable" so the server doesn't have to compute and return this for every file.
The text was updated successfully, but these errors were encountered: