MP3 upload dinied "file extension not supported" #6413

Closed
opened 2026-02-21 18:15:37 -05:00 by yindo · 2 comments
Owner

Originally created by @FBR65 on GitHub (Oct 29, 2024).

Self Checks

  • This is only for bug report, if you would like to ask a question, please head to Discussions.
  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • Please do not modify this template :) and fill in all the required fields.

Dify version

0.10.2

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

Workflow Start-component:

Define variable as File Input.

Choose Audio.

Test Run

✔️ Expected Behavior

Upload of MP3 file

Actual Behavior

"file extension not supported" is shown in right upper corner of the GUI

Originally created by @FBR65 on GitHub (Oct 29, 2024). ### Self Checks - [X] This is only for bug report, if you would like to ask a question, please head to [Discussions](https://github.com/langgenius/dify/discussions/categories/general). - [X] I have searched for existing issues [search for existing issues](https://github.com/langgenius/dify/issues), including closed ones. - [X] I confirm that I am using English to submit this report (我已阅读并同意 [Language Policy](https://github.com/langgenius/dify/issues/1542)). - [X] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:) - [X] Please do not modify this template :) and fill in all the required fields. ### Dify version 0.10.2 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce Workflow Start-component: Define variable as File Input. Choose Audio. Test Run ### ✔️ Expected Behavior Upload of MP3 file ### ❌ Actual Behavior "file extension not supported" is shown in right upper corner of the GUI
yindo added the 🐞 bug label 2026-02-21 18:15:37 -05:00
yindo closed this issue 2026-02-21 18:15:37 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Oct 29, 2024):

I found a similar discussion regarding file support issues: Not support for mp4?, which is currently unsolved [1].

Regarding your issue, MP3 files should be supported for audio uploads in Dify, as the platform supports file extensions like FLAC, MP3, MP4, MPEG, MPGA, M4A, OGG, WAV, and WEBM [2].

The error you're encountering might be due to a configuration issue or a bug in the version you are using. You might want to check the file type validation settings in your configuration to ensure MP3 is included in the allowed file types. The validation is handled in the FileUploader component and the backend FileService class, which checks against predefined lists of supported file extensions [3][4].

If the configuration seems correct, consider checking for any updates or patches that might address this issue in your current version.

To continue talking to Dosu, mention @dosu.

@dosubot[bot] commented on GitHub (Oct 29, 2024): <!-- Answer --> I found a similar discussion regarding file support issues: [Not support for mp4?](https://github.com/langgenius/dify/discussions/9730), which is currently unsolved <sup>[[1]](https://github.com/langgenius/dify/discussions/9730)</sup>. Regarding your issue, MP3 files should be supported for audio uploads in Dify, as the platform supports file extensions like FLAC, MP3, MP4, MPEG, MPGA, M4A, OGG, WAV, and WEBM <sup>[[2]](https://github.com/langgenius/dify-docs/blob/main/en/guides/workflow/file-upload.md)</sup>. The error you're encountering might be due to a configuration issue or a bug in the version you are using. You might want to check the file type validation settings in your configuration to ensure MP3 is included in the allowed file types. The validation is handled in the `FileUploader` component and the backend `FileService` class, which checks against predefined lists of supported file extensions <sup>[[3]](https://github.com/langgenius/dify/blob/main/web/app/components/datasets/create/file-uploader/index.tsx)</sup><sup>[[4]](https://github.com/langgenius/dify/blob/main/api/services/file_service.py)</sup>. If the configuration seems correct, consider checking for any updates or patches that might address this issue in your current version. <!-- Dosu Comment Footer --> *To continue talking to [Dosu](https://dosu.dev), mention @dosu.*
Author
Owner

@crazywoola commented on GitHub (Oct 29, 2024):

Duplicated https://github.com/langgenius/dify/issues/9992

@crazywoola commented on GitHub (Oct 29, 2024): Duplicated https://github.com/langgenius/dify/issues/9992
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#6413