Replace file_inline_types variable with a field formatter setting

Created on 17 December 2010, over 14 years ago
Updated 10 April 2025, about 1 month ago

Before filefield was merged, this patch #485336: Make Content-Disposition configurable for private downloads β†’ was added to allow admins to configure which filetypes were presented inline and which were presented as an attachment. This requires the admin to set the variable with PHP code!

variable_set('filefield_inline_types',array('image\/*', 'text\/*', 'flash$', 'audio\/midi'));

This is still the case in D7 and I find it ridiculous. I have a module which adds a simple box to set the variable, but that's a stupid way to do it. If I get time, I'll write up a patch to present the inline/attachment option as a field formatter.

✨ Feature request
Status

Postponed: needs info

Version

11.0 πŸ”₯

Component

file system

Created by

πŸ‡ΊπŸ‡ΈUnited States binford2k

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.

  • πŸ‡¦πŸ‡ΊAustralia kim.pepper πŸ„β€β™‚οΈπŸ‡¦πŸ‡ΊSydney, Australia

    This feature request was posted against D7 which is no longer supported. If there is a feature request that would apply to Drupal 11+ then please feel free to update the Issue Summary and describe the details of that request.

Production build 0.71.5 2024