[PR #841] [MERGED] Adds json mime type as text type to allow edit json files #1071

Closed
opened 2026-03-02 16:03:04 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/prasathmani/tinyfilemanager/pull/841
Author: @efremovd
Created: 8/24/2022
Status: Merged
Merged: 8/25/2022
Merged by: @prasathmani

Base: masterHead: add-json-mime-as-text


📝 Commits (1)

  • b9c9355 Adds json mime type as text type to allow edit json files

📊 Changes

1 file changed (+1 additions, -0 deletions)

View changed files

📝 tinyfilemanager.php (+1 -0)

📄 Description

Hi,

First thanks for your awesome tiny file manager.

We discovered that we have files that are json inside so mime type gets detected correctly but they don't have any extension so button to edit them won't show up on the page.

In this PR I just added 'application/json' as valid text mime type returned by your function.

Thanks.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/prasathmani/tinyfilemanager/pull/841 **Author:** [@efremovd](https://github.com/efremovd) **Created:** 8/24/2022 **Status:** ✅ Merged **Merged:** 8/25/2022 **Merged by:** [@prasathmani](https://github.com/prasathmani) **Base:** `master` ← **Head:** `add-json-mime-as-text` --- ### 📝 Commits (1) - [`b9c9355`](https://github.com/prasathmani/tinyfilemanager/commit/b9c93550857ef815f3d1184f650001e439715681) Adds json mime type as text type to allow edit json files ### 📊 Changes **1 file changed** (+1 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `tinyfilemanager.php` (+1 -0) </details> ### 📄 Description Hi, First thanks for your awesome tiny file manager. We discovered that we have files that are json inside so mime type gets detected correctly but they don't have any extension so button to edit them won't show up on the page. In this PR I just added 'application/json' as valid text mime type returned by your function. Thanks. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-02 16:03:04 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/tinyfilemanager#1071
No description provided.