Skip to content
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

"File validation failed for file" error occurs when "Upload File Types" is "URL" #11192

Closed
5 tasks done
fujita-h opened this issue Nov 28, 2024 · 3 comments · Fixed by #11197 or #11207
Closed
5 tasks done

"File validation failed for file" error occurs when "Upload File Types" is "URL" #11192

fujita-h opened this issue Nov 28, 2024 · 3 comments · Fixed by #11197 or #11207
Assignees
Labels
🐞 bug Something isn't working

Comments

@fujita-h
Copy link
Contributor

fujita-h commented Nov 28, 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.12.1

Cloud or Self Hosted

Cloud, Self Hosted (Source)

Steps to reproduce

  1. Create new workflow
  2. Open start node, add single image file input named valiable 'file' and set Upload File Type to "URL"
  3. Add End node, just output file.name
  4. Run flow, with url https://cloud.dify.ai/logo/logo-site.png

✔️ Expected Behavior

Complete the flow

❌ Actual Behavior

"File validation failed for file" error occurs

@fujita-h
Copy link
Contributor Author

This problem does not occur if Upload File Type is set to "Both".

@dosubot dosubot bot added the 🐞 bug Something isn't working label Nov 28, 2024
@fujita-h
Copy link
Contributor Author

fujita-h commented Nov 28, 2024

related #10845, #11028

Copy link

dosubot bot commented Nov 28, 2024

I found a similar closed issue that might be relevant to your problem: File upload variable extension validation not match the setting. This issue was resolved by a pull request that addressed a problem with file uploads, specifically for mp3 files [1].

For your specific issue with the "File Validation failed for file" error when using "URL" as the upload file type, consider checking the following:

  1. File Type and Extension Validation: Ensure that the file type and extension are correctly configured to accept URLs. There might be a mismatch in the expected file type or extension settings.

  2. Configuration Settings: Verify that your configuration settings align with the requirements for using URLs as file inputs. This includes checking any recent changes or updates in the Dify platform that might affect URL handling.

  3. Logs and Error Messages: Review any logs or error messages for additional clues about why the validation is failing. This can help identify if there are specific conditions or missing configurations causing the issue.

If the problem persists, you might want to follow up on the related issue #10845 mentioned in your report for any updates or solutions that might be applicable.

To continue talking to Dosu, mention @dosu.

@fujita-h fujita-h changed the title "File Validation failed for file" error occurs when "Upload File Types" is "URL" "File validation failed for file" error occurs when "Upload File Types" is "URL" Nov 28, 2024
@laipz8200 laipz8200 reopened this Nov 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 bug Something isn't working
Projects
None yet
2 participants