镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

Allow S3 Primary Storage but keep thumbnails/previews local #55639

Description

@mrnoisytiger

How to use GitHub

  • Please use the 👍 reaction to show that you are interested into the same feature.
  • Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
  • Subscribe to receive notifications on status change and new comments.

Is your feature request related to a problem? Please describe.

I am currently using Backblaze B2 as my Primary Storage through the S3 object storage functionality. I have a number of multimedia files that I'm generating previews for. However, those previews are not particularly responsive since they appear to be stored within that bucket as well.

Describe the solution you'd like

It would be great to have a configurable option allows previews to be stored in a local directory while leaving primary storage in S3.

Activity

  1. CloudCoder commented on Oct 12, 2025

    @CloudCoder

    "It would be great to have a configurable option allows previews to be stored in a local directory while leaving primary storage in S3."

    I second this... Video previews are essential for Nextcloud users. It shouldn't matter where the files are stored

    Until this is implemented, are there any scripts that will download first few seconds of user's videos from s3 storage, extract a single frame (using ffmpeg), and saving the frame image locally in the user's previews folder?

  2. provokateurin commented on Oct 13, 2025

    @provokateurin
    Member

    @CarlSchwan with the new previews implementation, is this possible?

  3. CloudCoder commented on Oct 13, 2025

    @CloudCoder

    Well I upgraded Nextcloud to Autmn 25 Beta version, ran preview generate -all and restarted system.
    Image previews work perfectly.

    Still no video previews (.mp4) showing in files app or Memoried app. My videos are stored in S3 object storage.

    Note: I'm using S3 as primary storage. I think this why no video previews?

  4. invario commented on Oct 14, 2025

    @invario
    Contributor

    Were any error log entries generated as a result?

  5. CloudCoder commented on Oct 14, 2025

    @CloudCoder

    Were any error log entries generated as a result?

    Can't remember invario - logs have been cleared since then

  6. invario commented on Oct 14, 2025

    @invario
    Contributor

    Were any error log entries generated as a result?

    Can't remember invario - logs have been cleared since then

    😞 Well, I have PR #55100 pending which improves logging for preview generation for movies. If it gets merged, maybe use that and turn on debug logging to see where the failure is or if it even calls the preview generation routine.

  7. invario commented on Oct 14, 2025

    @invario
    Contributor

    Were any error log entries generated as a result?

    Can't remember invario - logs have been cleared since then

    @CloudCoder Sorry, I should have been clearer. Were any logs generated from the failure to generate video previews? (After you updated and ran occ preview:generate-all?

  8. CloudCoder commented on Oct 15, 2025

    @CloudCoder

    I have now converted all of my videos to .mp4 and replaced the videos on the server with them.
    Then ran occ preview:generate-all with no errors in logs.

    I added 'preview_max_file_size_image' => 100, to my config.php and regenerated previews but still no video thumbnails?
    I use S3 object storage for data directory so no local previews folder exists.

    I'm looking into setting up a mount point for the S3 bucket on my server to see if that will allow video previews to be generated on local drive.

    HTH

  9. invario commented on Oct 15, 2025

    @invario
    Contributor

    PR #55100 was merged 14 hours ago into the master branch (hurray!). Were you using an up to date pull with debug logging enabled?

    But I don't want to make you jump through hoops for no reason, just trying to help and trying to make sure it isn't a problem with the preview generation code I wrote in Movie.php.

  10. CarlSchwan commented on Oct 16, 2025

    @CarlSchwan
    Member

    @CarlSchwan with the new previews implementation, is this possible?

    Not really at the moment, but it wouldn't be hard to implement.

    That is already possible is to decide to have the previews in a different object store implementation. E.g. minio running locally

  11. MichaelUray commented on Nov 2, 2025

    @MichaelUray

    The current implementation of the S3 primary storage does not encrypt thumbnails and it would be good to keep them locally for security reasons as well since they could contain sensitive data.

    There actually was a PR to store appdata at another destination, but it got closed.

  12. sm1000 commented on Apr 7, 2026

    @sm1000

    Based on the main request, I will be happy to see a native configuration variable introduced in config.php that allows the administrator to define a custom path for the preview storage, independent of the main Data or AppData directories.

    Example:
    'preview_directory' => '/mnt/ssd/nextcloud_preview',

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions