[Bug] the file.url is empty if you pass single audio file from start node
Self Checks
- [x] This is only for bug report, if you would like to ask a question, please head to Discussions.
- [x] I have searched for existing issues search for existing issues, including closed ones.
- [x] I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
- [x] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
- [x] Please do not modify this template :) and fill in all the required fields.
Dify version
1.0.0
Cloud or Self Hosted
Self Hosted (Docker)
Steps to reproduce
- Pass audio file from start node
- reference audio.url in the second node
- You will find that the input of second node will be empty.
✔️ Expected Behavior
No response
❌ Actual Behavior
No response
I found some relevant information regarding the issue of file.url being empty in a Dify workflow. This is a known behavior when files are uploaded to disk storage, as the URL will return null. Instead of using file.url, you should use file.remote_url to obtain the URL when it is available, especially in Dify version 0.13.2, where file.url returns null for image uploads [1][2].
Additionally, ensure that your environment is correctly configured, particularly the FILES_URL and STORAGE_TYPE environment variables, to manage and store file URLs properly in a self-hosted Docker environment [2][3].
To continue talking to Dosu, mention @dosu.
Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other
how to set variable as remote_url? There is not remote_url to choose.
I have the same problem. I can see the url address in the output of start, and I have checked the url was right. But I cannot get the url in any following nodes. I guess file.url is actully used for the url which users upload file by url. When users upload file by local file, it will be upload onto dify server, then we can see the url in response information, but the url has not been saved into file.url. So the question is, how can i get the file url of dify server in the following node?
I encountered the same problem
I also faced the same issue in v1.2.0 version. As an alternative, I am using a workaround by selecting multi-file type and accessing file[0]['url'] to get the url.
I also encountered the same issue in version v1.2.0. As an alternative, I am using a workaround by selecting the multi-file type and accessing file[0]['url'] to obtain the URL.
Can you provide a screenshot to illustrate this? I do not see this parameter in the file.think you!
On what grounds is the issue closed?