file_url in http request empry #12563

Closed
opened 2026-02-21 19:08:00 -05:00 by yindo · 2 comments
Owner

Originally created by @asrguru20 on GitHub (Apr 5, 2025).

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.13.2

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

  1. create a chatflow
  2. in start node add file in Input Field ( image or docs)
  3. make a HTTP request node to n8n webhook url with POST method and in body part add:

{
"file_name": "{{#1743629744545.my_file.name#}}",
"file_type": "{{#1743629744545.my_file.type#}}",
"file_size": "{{#1743629744545.my_file.size#}}",
"file_url": "{{#1743629744545.my_file.url#}}"
}

- the received request is:

"params":
{
},
"query":
{
"message":
"what is yourname"
},
"body":
{
"file_name": "001.jpg",
"file_type": "image",
"file_size": "82917",
"file_url": ""
},
"webhookUrl":
"https://hexflow.ir/webhook-test/cbbda0d3-cbf6-437c-81d6-93fc33d2bb5d",
"executionMode":
"test"
}
]

Note: I also noticed in .env there is variable to set file URL preview :

File preview or download Url prefix.

used to display File preview or download Url to the front-end or as Multi-model inputs;

Url is signed and has expiration time.

FILES_URL=

should I set a FILES_URL ? what is this about and how to set should I create a sub domain for this ?

✔️ Expected Behavior

to receive file url value in webhook n8n

Actual Behavior

the File_URL variable is empty:
"body":
{
"file_name": "001.jpg",
"file_type": "image",
"file_size": "82917",
"file_url": ""
},

Originally created by @asrguru20 on GitHub (Apr 5, 2025). ### Self Checks - [x] This is only for bug report, if you would like to ask a question, please head to [Discussions](https://github.com/langgenius/dify/discussions/categories/general). - [x] I have searched for existing issues [search for existing issues](https://github.com/langgenius/dify/issues), including closed ones. - [x] I confirm that I am using English to submit this report (我已阅读并同意 [Language Policy](https://github.com/langgenius/dify/issues/1542)). - [x] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:) - [x] Please do not modify this template :) and fill in all the required fields. ### Dify version 0.13.2 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce 1. create a chatflow 2. in start node add file in Input Field ( image or docs) 3. make a HTTP request node to n8n webhook url with POST method and in body part add: { "file_name": "{{#1743629744545.my_file.name#}}", "file_type": "{{#1743629744545.my_file.type#}}", "file_size": "{{#1743629744545.my_file.size#}}", "file_url": "{{#1743629744545.my_file.url#}}" } # - the received request is: "params": { }, "query": { "message": "what is yourname" }, "body": { "file_name": "001.jpg", "file_type": "image", "file_size": "82917", "file_url": "" }, "webhookUrl": "https://hexflow.ir/webhook-test/cbbda0d3-cbf6-437c-81d6-93fc33d2bb5d", "executionMode": "test" } ] Note: I also noticed in .env there is variable to set file URL preview : # File preview or download Url prefix. # used to display File preview or download Url to the front-end or as Multi-model inputs; # Url is signed and has expiration time. FILES_URL= should I set a FILES_URL ? what is this about and how to set should I create a sub domain for this ? ### ✔️ Expected Behavior to receive file url value in webhook n8n ### ❌ Actual Behavior the File_URL variable is empty: "body": { "file_name": "001.jpg", "file_type": "image", "file_size": "82917", "file_url": "" },
yindo added the 🐞 bug label 2026-02-21 19:08:00 -05:00
yindo closed this issue 2026-02-21 19:08:00 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Apr 5, 2025):

I found a similar discussion that might be helpful for your issue. In the thread How to configure FILES_URL, it was suggested that the FILES_URL should be set to a URL that can host your files, such as a public URL of an S3 bucket or a similar service. This URL is used to generate the file preview or download URL, which is then included in the HTTP request [1].

To resolve your issue, you should configure the FILES_URL in your .env file. This URL should point to a location where your files can be accessed publicly. You might need to create a subdomain or use a service like Amazon S3 to host these files. Once configured, the file_url should be populated correctly in your HTTP request.

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] commented on GitHub (Apr 5, 2025): <!-- Answer --> I found a similar discussion that might be helpful for your issue. In the thread [How to configure `FILES_URL`](https://github.com/langgenius/dify/discussions/7527), it was suggested that the `FILES_URL` should be set to a URL that can host your files, such as a public URL of an S3 bucket or a similar service. This URL is used to generate the file preview or download URL, which is then included in the HTTP request <sup>[[1]](https://github.com/langgenius/dify/discussions/7527)</sup>. To resolve your issue, you should configure the `FILES_URL` in your `.env` file. This URL should point to a location where your files can be accessed publicly. You might need to create a subdomain or use a service like Amazon S3 to host these files. Once configured, the `file_url` should be populated correctly in your HTTP request. <!-- Dosu Comment Footer --> *To continue talking to [Dosu](https://dosu.dev), mention @dosu.* --- <sup>Help Dosu learn! Give it feedback: [Great Response](https://app.dosu.dev/response-feedback/42c91fad-c6ae-4ac0-b8b4-04bd49d43169?feedback_type=great_response) | [Irrelevant Answer](https://app.dosu.dev/response-feedback/42c91fad-c6ae-4ac0-b8b4-04bd49d43169?feedback_type=irrelevant_answer) | [Incorrect Sources](https://app.dosu.dev/response-feedback/42c91fad-c6ae-4ac0-b8b4-04bd49d43169?feedback_type=incorrect_sources) | [Too Verbose](https://app.dosu.dev/response-feedback/42c91fad-c6ae-4ac0-b8b4-04bd49d43169?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/42c91fad-c6ae-4ac0-b8b4-04bd49d43169?feedback_type=hallucination) | [Bug Report](https://app.dosu.dev/response-feedback/42c91fad-c6ae-4ac0-b8b4-04bd49d43169?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/42c91fad-c6ae-4ac0-b8b4-04bd49d43169?feedback_type=other)</sup>
Author
Owner

@LeeeeeeM commented on GitHub (Apr 5, 2025):

https://github.com/langgenius/dify/pull/17382

@LeeeeeeM commented on GitHub (Apr 5, 2025): https://github.com/langgenius/dify/pull/17382
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#12563