Skip to content

Shift-JIS encoded files are rejected with "Unsupported MIME type: application/octet-stream" error #1399

@UramotoKazushi

Description

@UramotoKazushi

Bug Description
Shift-JISエンコードのファイル(txt, csvなど)を添付すると、MIMEタイプがapplication/octet-streamとして認識され、バリデーションエラーが発生してファイルを処理できない。

Steps to Reproduce

  1. Shift-JISエンコードのテキストファイル(例:.txt や .csv)を用意する
  2. GenUのチャット画面でファイルを添付する
  3. 送信を試みる
  4. 以下のエラーが発生する
An error occurred. Please report the following error to the administrator.
ValidationException: Unsupported MIME type: application/octet-stream. Retry your request with a supported file type: xlsx, txt, pdf, csv, md, doc, html, xls, docx

Expected Behavior
Shift-JISエンコードのファイルでも、拡張子(.txt, .csv等)に基づいてサポート対象として認識され、正常に添付・処理できること。

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions