Replies: 4 comments 2 replies
-
|
The most common causes of a 403 Forbidden error for file upload or preview in Dify are: an incorrect or missing FILES_URL in your Other things to check: make sure you are authenticated in the Dify UI, file upload is enabled in your configuration, and your SSRF proxy (if used) allows requests to your server’s IP/port. CORS misconfiguration can also cause 403 errors—set If you’ve already set FILES_URL correctly and restarted, try setting To reply, just mention @dosu. How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other |
Beta Was this translation helpful? Give feedback.
-
|
I can access this string of URLs directly, but it seems that Dify's API service cannot |
Beta Was this translation helpful? Give feedback.
-
|
@dosu |
Beta Was this translation helpful? Give feedback.
-
|
The 403 on Check these:
location /files/ {
proxy_pass http://api:5001/files/;
# ... other proxy headers
}
Does that point you in the right direction? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Self Checks
1. Is this request related to a challenge you're experiencing? Tell me about your story.
My dify access path is 192.168.104.11:180, and when I upload files in workflow, I encounter "
Client error '403 Forbidden' for url 'http://192.168.104.11:180/files/21297ed8-b358-449b-b1ea-32e2d36de8e3/file-preview?timestamp=1767765195&nonce=a758a04fbda3833ec6bda3f19993273b&sign=KoQ4yRruLeH5ykYC2UdQjuW0EaNiaHDDK7hM6qS1f94%3D'
For more information check: https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/403“,
I already have "FILES_URL=http://192.168.104.11:180" configured in the .env file, is there anything else I need to do?
2. Additional context or comments
No response
Beta Was this translation helpful? Give feedback.
All reactions