Skip to content

OC.Previews utility in JS side telling what preview mimetypes are available #17543

Closed

Description

@PVince81

@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.

Activity

  1. PVince81 commented on Jul 9, 2015

    @PVince81
    ContributorAuthor

    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.

  2. oparoz commented on Jul 9, 2015

    @oparoz
    Contributor

    OK from me. Gallery already uses such an array to build the thumbnails list or the slideshow, so all good.

  3. added this to the backlog milestone on Mar 1, 2016
  4. PVince81 commented on Oct 27, 2017

    @PVince81
    ContributorAuthor

    @VicDeo didn't we add something recently to avoid 404s ?

  5. VicDeo commented on Jan 5, 2018

    @VicDeo
    Contributor
  6. lock commented on Jul 31, 2019

    @lock

    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.

  7. locked as resolved and limited conversation to collaborators on Jul 31, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions