JSON mime type guesser returning application/octet-stream

Created on 5 January 2023, almost 2 years ago
Updated 17 March 2023, over 1 year ago

Problem/Motivation

Uploading JSON file into drupal files will guess the mimetype as application/octet-stream instead of application/json

Steps to reproduce

Upload a json file and check the file_managed table in the database, the filemime column will be application/octet-stream

Proposed resolution

Add support for JSON extension in ExtensionMimeTypeGuesser.php

Remaining tasks

Patch

User interface changes

None

API changes

None

Data model changes

None

Release notes snippet

None

Feature request
Status

Fixed

Version

10.1

Component
File system 

Last updated about 11 hours ago

Created by

🇯🇴Jordan Anas_maw

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.

Production build 0.71.5 2024