Support for Media Files

Created on 13 June 2019, over 5 years ago
Updated 13 September 2023, over 1 year ago

This module only converts media images, not media files. I wasn't sure of the best way to add support for media files, but here's my attempt.

✨ Feature request
Status

Postponed: needs info

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States sangus

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡ΊπŸ‡ΈUnited States ben.hamelin Adirondack Mountains, NY

    Minor change in this patch so it applies to 3.x (file_url_transform_relative() method deprecation).

  • πŸ‡¨πŸ‡¦Canada alberto56

    In an attempt to test this, I created a new site, then, I went to /admin/structure/types/manage/article/fields/add-field, and added a new field of type Reference > File which allows PDF imports.

    Then I went to /node/add/article and created an article named "test" with a PDF import.

    Then I went to /admin/content/files and noted the file's ID, which is 1.

    Then I went to /admin/config/content/formats/manage/full_html?destination=/admin/config/content/formats and checked "Convert Legacy Media Tags to Markup", and saved.

    Then I opened /node/add/page and created a page called "Test page".

    In it, I added in the source code:

    [[{"link_text":"this is a test","fid":"1"}]]

    In text format "Full HTML".

    Then I saved, but on the end page, I could see the following:

    [[{"link_text":"this is a test","fid":"1"}]]

    And not

    this is a test β†’

    If you would like me to commit the patch to the next version of the module, please provide a complete step-by-step guide to testing it, thanks!

Production build 0.71.5 2024