@TODO
* Create a configuration for allowed mime types by default:
** text/plain
** text/csv
** application/json
** application/xml
* Add form element to select the mime type, set default to text/plain
* Make a patch for existing served_files & set the value to text/plain
* Update ServePlainFile controller to use the configured type

Comments

mbm80 created an issue. See original summary.

mbm80’s picture

Issue summary: View changes
mbm80’s picture

Issue summary: View changes
mbm80’s picture

Status: Active » Needs review
StatusFileSize
new5.39 KB

* Added default config + update hook to initialize the config
* Added mimetype getter to Config Entity
* Added mimetype form field
* Applied mimetype in response header

  • mbm80 committed f9ac6a2 on 8.x-1.x
    Issue #2980928 by mbm80: Allow configuration of MIME type
    
mbm80’s picture

Status: Needs review » Fixed

merged

mbm80’s picture

Status: Fixed » Closed (fixed)