Describe the bug
The getAssetPath() method does not correctly resolve the configured volume subpath.
When a volume is created with:
- Base path:
@assetBasePath/media
- Subpath:
multimedia
The expected behavior is that the resolved asset path should include both the base path and subpath. However, the plugin ignores the subpath and resolves a video file as: /web/media/homepage/home/sample.mp4. This leads to a silent failure of transcoding, and the video not being processed.
However, when a volume is created with:
- Basepath:
@assetBasePath/media/multimedia
- Subpath: ''
The resolved asset path is as expected: /web/media/multimedia/homepage/home/sample.mp4.
To reproduce
Steps to reproduce the behaviour:
- Go to Craft CMS control panel.
- Create a volume with:
- Base path: @assetBasePath/media
- Subpath: multimedia
- Upload a video asset (mp4) into a folder under the volume (e.g. homepage/home/).
- Trigger transcoding via Craft Transcoder.
- Check logs or output path resolution.
- Observe that subpath is missing in resolved file path.
Expected behaviour
The resolved asset path should correctly include both base path and subpath, resulting in a path like:
/web/media/multimedia/homepage/home/sample.mp4.
The transcoder should successfully locate the file and complete the transcoding process without errors.
Versions
- Plugin version: 5.0.0
- Craft version: 5.9.17
Describe the bug
The getAssetPath() method does not correctly resolve the configured volume subpath.
When a volume is created with:
@assetBasePath/mediamultimediaThe expected behavior is that the resolved asset path should include both the base path and subpath. However, the plugin ignores the subpath and resolves a video file as:
/web/media/homepage/home/sample.mp4. This leads to a silent failure of transcoding, and the video not being processed.However, when a volume is created with:
@assetBasePath/media/multimediaThe resolved asset path is as expected:
/web/media/multimedia/homepage/home/sample.mp4.To reproduce
Steps to reproduce the behaviour:
Expected behaviour
The resolved asset path should correctly include both base path and subpath, resulting in a path like:
/web/media/multimedia/homepage/home/sample.mp4.The transcoder should successfully locate the file and complete the transcoding process without errors.
Versions