You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.0
Cloud or Self Hosted
Cloud
Steps to reproduce
I upload a file in the HTTP request body, but it returns an error saying unsupported file format.
Example, I upload a .pdf file and the external api for ingestion handles .pdf and .txt files and for other formats, it throws the "unsupported file format." message.
✔️ Expected Behavior
File is ingested successfully message in the output.
❌ Actual Behavior
Unsupported file format error.
The text was updated successfully, but these errors were encountered:
The "unsupported file format" error you're encountering might be due to a few potential issues:
File Format Validation: Ensure that the file is indeed a valid PDF. Sometimes, files with a .pdf extension might not be properly formatted as PDFs, leading to validation errors.
Content-Type Header: Verify that the Content-Type header is correctly set to multipart/form-data in your HTTP request. This is crucial for file uploads, as it ensures the server correctly interprets the incoming data [1].
File Size Limitations: Check if the file size exceeds any limits set by the API. The Dify API supports files up to 15MB in size [2].
Correct API Endpoint: Double-check that you are using the correct API endpoint and that it is configured to accept PDF files.
If all these aspects are correctly configured and the issue persists, there might be a need to look into the server-side handling of the file to ensure it is not rejecting the file for any other reason.
Self Checks
Dify version
0.10.0
Cloud or Self Hosted
Cloud
Steps to reproduce
I upload a file in the HTTP request body, but it returns an error saying unsupported file format.
Example, I upload a .pdf file and the external api for ingestion handles .pdf and .txt files and for other formats, it throws the "unsupported file format." message.
✔️ Expected Behavior
File is ingested successfully message in the output.
❌ Actual Behavior
Unsupported file format error.
The text was updated successfully, but these errors were encountered: