Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
File formatters may now specify the file and MIME types that they support.
Comment | File | Size | Author |
---|---|---|---|
#1 | add-file-and-mime-type-information-to-formatters-2159275-1.patch | 1.16 KB | Devin Carlson |
Comments
Comment #1
Devin Carlson CreditAttribution: Devin Carlson commentedA patch to add the supported file and MIME type information to the oembed and oembed_thumbnail file formatters.
Comment #2
Devin Carlson CreditAttribution: Devin Carlson commentedTested #1 and confirmed that the file formatters continued to function properly while being properly restricted to the appropriate file and MIME types.
Committed #1 to oEmbed 7.x-1.x.
Comment #4
prat CreditAttribution: prat commentedDoesn't appear as formatting option on any of the file types, except for "oEmbed image", which is defined in file_formatter_info_alter.
Running on media 2.0-alpha3 . Proper testing needed I guess
Comment #5
prat CreditAttribution: prat commentedComment #6
Devin Carlson CreditAttribution: Devin Carlson commentedThe "oEmbed image" formatter is separate from the "oEmbed" and "oEmbed thumbnail" formatters.
If you are having problems with that formatter in particular, I'd suggest filing a separate issue.