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
"1 validation error for File\n Value error, Invalid file url [type=value_error, input_value={'id': None, 'tenant_id':...y__file__', 'url': None}, input_type=dict]\n For further information visit https://errors.pydantic.dev/2.9/v/value_error"
#18866
New issue
Have a question about this project? No Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
Hello @by-Cici! I'm Dosu, a bot here to help you tackle bugs, answer your questions, and guide you on your journey to becoming a contributor. While you wait for a human maintainer, feel free to share any details or ask for assistance!
To resolve the "Invalid file url" validation error when using the link method to upload files in a self-hosted Dify version 1.1.2 setup, follow these steps:
Edit the docker/.env file in your self-hosted Docker environment.
Locate the FILES_URL configuration.
Set FILES_URL to your Dify access address, such as http://192.168.10.14/ or http://192.168.10.14:port if using a non-standard port.
Execute docker-compose down && docker-compose up -d to apply the changes.
Additional requirements to ensure success:
Use the actual intranet IP instead of localhost.
Disable any proxy software during testing.
Ensure URLs do not contain spaces, as spaces in the URL can cause the "Invalid file URL" error.
Verify that URLs start with 'http'.
Ensure to restart Docker services after making changes.
Note: If you are using OpenRouter models (like GPT-4o), be aware that there is a known compatibility issue with the OpenRouter plugin that can cause image uploads to fail with a 400 error indicating an invalid file URL. This issue is specific to the OpenRouter plugin integration and may require additional troubleshooting or updates from the plugin provider [1][2][3][4].
Self Checks
Dify version
1.1.2
Cloud or Self Hosted
Self Hosted (Docker)
Steps to reproduce
An error will be reported when using the link method to upload files.

✔️ Expected Behavior
No response
❌ Actual Behavior
No response
The text was updated successfully, but these errors were encountered: