Skip to content

Thumbnails not shown in UPLOADED section #1517

Closed

Description

Expected behaviour

For all photos a preview/thumbnail should be shown in #1493.

Actual behaviour

For some photos in UPLOADED section placeholder is shown.

Steps to reproduce

  1. Enable instant upload and set behavior to "move to app folder".
  2. Take photo to invoke instant upload.
  3. Wait until upload has finished. Do not click notification "upload at x%".
  4. Go to uploads view (e.g. by clicking the notification "upload successful").

Activity

  1. davivel commented on Mar 21, 2016

    @davivel
    Contributor

    With "preview" you mean "thumbnails", right?

    We need to narrow down the "some photos" part. Happens only with instant uploads? What "behaviour" did you selected in the instant uploads options?. Is the thumbnails still invisible if you scroll the upload out of the screen and then bring it back? Is the thumbnail of the picture visible in the list view?

  2. davivel commented on Mar 22, 2016

    @davivel
    Contributor

    That info will be very useful. Let's deal with this as a bug to fix for #1493, at least as nice-2-have.

    Shouldn't it be the same thumbnail?

    This is a very interesting question. It's a side effect of merging the recently added "policy" about duplication of files for instant uploads, and the addition of the uploads view.

    The list of files tracks OCFiles -- this is, files that exist in your OC account. In practice, files that already exist in your server. The app tracks local copies of these files, but only if they are contained in the local owncloud folder. With the now default behaviour for instant uploads, the pictures are left in the DCIM folder (to avoid duplications), so the app handles the new created OCFile as not downloaded. If you enable the other behaviour for instant uploads, the pictures are moved from DCIM to the local owncloud folder, and then the app consider the new created OCFile as downloaded. Thumbnails in the list of files are generated from the local copy in owncloud if it exists, and remotely requested to the server [1] if there is no local copy there.

    The uploads view can't track OCFiles because for many upload there is still no OCFile - it doesn't exist until the file is completely uploaded for the first time. Due to this, stored uploads need to track the local file even though it's out of the owncloud folder, otherwise there is no way to retry failed uploads of files that are added to the account. Thumbnails try to take advantage of this, and use those local files out of the owncloud folder.

    [1] If remote thumbnails use to work with your server, but you have no thumbnail for pictures that show thumbnail in the uploads view, then we could be facing another bug related with a key failure in the thumbnails cache.

  3. changed the title [-]Preview not shown in `UPLOADED` section[/-] [+]Thumbnails not shown in `UPLOADED` section[/+] on Mar 22, 2016
  4. davivel commented on Mar 22, 2016

    @davivel
    Contributor

    And after all this speech, I just noticed that maybe remote thumbnails are not working at all in your server setup. Is that the case, @LukeOwncloud ?

  5. davivel commented on Mar 22, 2016

    @davivel
    Contributor

    And you are using "move to app folder", so definitely something is wrong there.

  6. davivel commented on Mar 22, 2016

    @davivel
    Contributor

    But this is still happening, right?

    Curious: The other uploads for which a thumbnail is shown are still missing the thumbnail in the file view (list view).

    So, no remote thumbnails working for those particular files. Or am I misunderstanding?

  7. malkomich commented on Mar 28, 2016

    @malkomich
    Contributor

    Fixed :)
    Now when the upload view is refreshed the thumbnail is generated in a right way.

  8. jesmrec commented on Mar 29, 2016

    @jesmrec
    Member

    👍 refreshing the view all thumbnails from moved instant uploads are shown

  9. malkomich commented on Apr 20, 2016

    @malkomich
    Contributor

    I'll close this issue since it is already approved by QA and merged in PR #1493 ;)

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

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions