-
Notifications
You must be signed in to change notification settings - Fork 14k
upload file failed #10597
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@ljwps Hello! I'm here to help you with any bugs, questions, or contributions you have for the Dify project. Let's work together to solve the issue you're facing. I found a similar closed issue that might be relevant to your problem: workflow files bug, can not upload file. The suggested solution was to ensure that the In your case, since the error seems to be happening on the client side, you might want to verify the client-side validation script for file uploads. The script checks the file type against a list of allowed extensions and MIME types. Make sure that the file types you are trying to upload (.docx and .xlsx) are included in the allowed file types configuration. This configuration can be found in the If the issue persists, you might need to check the |
According to your suggestions, I checked the source code, and both points 2 and 3 are indeed present. However, the issue still persists. |
I ran into the same issue, and my version is 0.10.2 |
So are there any solutions here? () |
Same issue here trying to load files with custom extensions |
I just uploaded file of txt but failed. |
See this thread. This should be fixed in next version. #10551 (comment) |
Will the issue with file uploads be resolved in the next version? The IsADirectoryError: [Errno 21] Is a directory: '/app/api' problem has been resolved on my end by following the link you provided. |
I have encountered same issue.
|
@Bannerli Please read through above conversations, you can find out how to solve it. |
Self Checks
Dify version
0.11.1
Cloud or Self Hosted
Self Hosted (Docker)
Steps to reproduce
Upgrade from 0.6.x to 0.11.1
Upgrade Process:
After starting up, I created a node with a file upload feature for testing. When trying to upload a .docx file in the preview mode, an error appeared saying "File type not supported." I also tried uploading an .xlsx file and encountered the same error. However, uploading an .xml file was successful.
Using the browser's F12 developer tools to inspect the file upload request, I noticed that no request was actually sent. This suggests that the file type check is performed on the client side, as there are no error logs on the server.
Screenshots

Additionally, one of the Docker images repeatedly fails to start and keeps restarting after the upgrade.

✔️ Expected Behavior
upload file success
❌ Actual Behavior
File type not supported
The text was updated successfully, but these errors were encountered: