Support remote file systems such as S3

Created on 23 January 2024, 5 months ago
Updated 24 January 2024, 5 months ago

Problem/Motivation

The use of realpath() in Drupal\media_thumbnails_video\Plugin\MediaThumbnail\MediaThumbnailVideo::createThumbnail() returns FALSE for remote files, such as when the video files are hosted on S3.

Proposed resolution

Invoke stream wrapper methods when realpath() fails. Also, first save thumbnail to the temporary file system before invoking file system/stream wrapper move so that files are copied to external destinations correctly.

✨ Feature request
Status

Needs review

Version

2.0

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.69.0 2024