dify icon indicating copy to clipboard operation
dify copied to clipboard

[Bug] the file.url is empty if you pass single audio file from start node

Open ybalbert001 opened this issue 10 months ago • 3 comments

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

Image
  1. Pass audio file from start node
  2. reference audio.url in the second node
  3. You will find that the input of second node will be empty.

✔️ Expected Behavior

No response

❌ Actual Behavior

No response

ybalbert001 avatar Mar 08 '25 02:03 ybalbert001

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

dosubot[bot] avatar Mar 08 '25 03:03 dosubot[bot]

how to set variable as remote_url? There is not remote_url to choose.

Image

terrysun1216 avatar Mar 13 '25 16:03 terrysun1216

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?

Image

panpeter2024 avatar Mar 14 '25 09:03 panpeter2024

Image this bug still here

tkizm1 avatar Mar 24 '25 04:03 tkizm1

I encountered the same problem

hwb96 avatar Apr 18 '25 04:04 hwb96

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.

CreadDiscans avatar Apr 21 '25 04:04 CreadDiscans

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!

Image

hwb96 avatar Apr 21 '25 06:04 hwb96

On what grounds is the issue closed?

htchaan avatar Nov 20 '25 07:11 htchaan