Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions lib/private/Preview/Movie.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,12 @@ public function getThumbnail(File $file, int $maxX, int $maxY): ?IImage {
// in some cases this doesn't work for example when the moov atom is at the
// end of the file, so if it fails we fall back to getting the full file
$sizeAttempts = [5242880, null];

// do not attempt to download the file if the storage is not local (e.g. S3)
// We don't want to download the whole (e.g. 37Gb) file
if (!$file->getStorage()->isLocal()) {
$sizeAttempts = [5242880];
}
} else {
// size is irrelevant, only attempt once
$sizeAttempts = [null];
Expand Down
Loading