Skip to content

fix(mimetype): Add TSV support in mimetype aliases, mapping, and names#61147

Open
brlin-tw wants to merge 1 commit into
nextcloud:masterfrom
brlin-tw:add-tsv-support
Open

fix(mimetype): Add TSV support in mimetype aliases, mapping, and names#61147
brlin-tw wants to merge 1 commit into
nextcloud:masterfrom
brlin-tw:add-tsv-support

Conversation

@brlin-tw

@brlin-tw brlin-tw commented Jun 10, 2026

Copy link
Copy Markdown

Summary

This pull requests adds definitions for the text/tab-separated-values mime type.

TODO

  • How to verify this one? I'm not actually sure. The devcontainer seems to be run just fine.

Checklist

AI (if applicable)

  • The content of this PR was partly or fully generated using AI

Signed-off-by: 林博仁(Buo-ren Lin) <buo.ren.lin@gmail.com>
@brlin-tw brlin-tw requested a review from a team as a code owner June 10, 2026 10:33
@brlin-tw brlin-tw requested review from ArtificialOwl, come-nc, icewind1991 and salmart-dev and removed request for a team June 10, 2026 10:33

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: f3799c8654

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

"text/css": "text/code",
"text/csv": "x-office/spreadsheet",
"text/html": "text/code",
"text/tab-separated-values": "x-office/spreadsheet",

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Regenerate mimetypelist.js with the TSV alias

Adding this alias only updates the server-side JSON; the browser uses the tracked generated core/js/mimetypelist.js (window.OC.MimeTypeList.aliases/names) for file icons, type filters, and display names. This commit leaves that generated file unchanged (it still has text/csv but no text/tab-separated-values entry), so .tsv files detected as text/tab-separated-values will not get the spreadsheet alias or the new TSV name in the shipped UI until someone manually runs maintenance:mimetype:update-js.

Useful? React with 👍 / 👎.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe this is not a problem in the source code form.

@susnux susnux added enhancement 3. to review Waiting for reviews labels Jun 10, 2026
@susnux susnux added this to the Nextcloud 35 milestone Jun 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Nextcloud lacks mime type definition for TSV(tab-separated values) files

2 participants