Skip to content

Craft Transcoder ignores volume subpath when resolving asset path #78

Description

@preethiramiah

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:

  1. Go to Craft CMS control panel.
  2. Create a volume with:
    • Base path: @assetBasePath/media
    • Subpath: multimedia
  3. Upload a video asset (mp4) into a folder under the volume (e.g. homepage/home/).
  4. Trigger transcoding via Craft Transcoder.
  5. Check logs or output path resolution.
  6. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions