[Chatflow] sys.files does not contain a property to use in a list-operator block to differenciate if it was a local upload or upload via URL #7275

Closed
opened 2026-02-21 18:19:46 -05:00 by yindo · 1 comment
Owner

Originally created by @rnavarroz on GitHub (Dec 18, 2024).

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

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

Using Attach button on a chatbot/chatflow with both options enabled: local upload or upload via URL. If you use URL, the sys.files0[].transfer_method is set with 'local_file'

"sys.files": [
    {
      "dify_model_identity": "__dify__file__",
      "id": null,
      "tenant_id": "fb5cc640-7ff7-4ad4-89b2-88f35e7441c4",
      "type": "document",
      "transfer_method": "local_file",
      "remote_url": "https://example.com/",
      "related_id": "6781620a-f6a5-4c8f-af69-d4abae7a292c",
      "filename": "c0188599-5f00-49ab-9d35-df5b20916fbf.bin",
      "extension": ".bin",
      "mime_type": "text/html; charset=UTF-8",
      "size": 1256,
      "url": "/files/6781620a-f6a5-4c8f-af69-d4abae7a292c/file-preview?timestamp=1734561710&nonce=e3083b50cad6590eceb87d0a0194a150&sign=jBn1FX-RKQCARv1vFrU1TUmT4cg7RpBxrNwYfAyx9Vw="
    }
  ],

If you want to use a list-operator block and use 'transfer_method' as a filter, it won't work because on both cases the transfer_method is 'local_file'. The other options available are not helping to filter if it's local upload or upload via URL:
Selection_304
one option could be "remote_url" but it's not available.

✔️ Expected Behavior

The value of 'transfer_method' should be remote_url.

Actual Behavior

The value of 'transfer_method' is local_file (see https://github.com/langgenius/dify/pull/11207)

Originally created by @rnavarroz on GitHub (Dec 18, 2024). ### 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.1 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce Using Attach button on a chatbot/chatflow with both options enabled: local upload or upload via URL. If you use URL, the sys.files0[].transfer_method is set with 'local_file' ``` "sys.files": [ { "dify_model_identity": "__dify__file__", "id": null, "tenant_id": "fb5cc640-7ff7-4ad4-89b2-88f35e7441c4", "type": "document", "transfer_method": "local_file", "remote_url": "https://example.com/", "related_id": "6781620a-f6a5-4c8f-af69-d4abae7a292c", "filename": "c0188599-5f00-49ab-9d35-df5b20916fbf.bin", "extension": ".bin", "mime_type": "text/html; charset=UTF-8", "size": 1256, "url": "/files/6781620a-f6a5-4c8f-af69-d4abae7a292c/file-preview?timestamp=1734561710&nonce=e3083b50cad6590eceb87d0a0194a150&sign=jBn1FX-RKQCARv1vFrU1TUmT4cg7RpBxrNwYfAyx9Vw=" } ], ``` If you want to use a list-operator block and use 'transfer_method' as a filter, it won't work because on both cases the transfer_method is 'local_file'. The other options available are not helping to filter if it's local upload or upload via URL: ![Selection_304](https://github.com/user-attachments/assets/4eda9117-270c-4e3b-89ad-4fc7bdf414c4) one option could be "remote_url" but it's not available. ### ✔️ Expected Behavior The value of 'transfer_method' should be remote_url. ### ❌ Actual Behavior The value of 'transfer_method' is local_file (see https://github.com/langgenius/dify/pull/11207)
yindo added the 🐞 bug label 2026-02-21 18:19:46 -05:00
yindo closed this issue 2026-02-21 18:19:46 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Dec 18, 2024):

Hello, @rnavarroz! I'm here to assist with any bugs, questions, or contributions you have for the project. Let's tackle this issue together!

The issue you're experiencing with the transfer_method attribute being incorrectly set to local_file for both local uploads and URL uploads is acknowledged in the Dify codebase. The expected behavior is for the transfer_method to be set to remote_url when a file is uploaded via a URL. This discrepancy was addressed in GitHub pull request #11207, which proposed changes to correctly differentiate between local and remote uploads by removing the validation that caused this issue. This change has been merged into the main branch, so updating to the latest version of Dify should resolve the problem.

To continue talking to Dosu, mention @dosu.


Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other

@dosubot[bot] commented on GitHub (Dec 18, 2024): <!-- Greeting --> Hello, @rnavarroz! I'm here to assist with any bugs, questions, or contributions you have for the project. Let's tackle this issue together! <!-- Answer --> The issue you're experiencing with the `transfer_method` attribute being incorrectly set to `local_file` for both local uploads and URL uploads is acknowledged in the Dify codebase. The expected behavior is for the `transfer_method` to be set to `remote_url` when a file is uploaded via a URL. This discrepancy was addressed in GitHub pull request #11207, which proposed changes to correctly differentiate between local and remote uploads by removing the validation that caused this issue. This change has been merged into the main branch, so updating to the latest version of Dify should resolve the problem. <!-- 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/11873b35-2776-42c3-b378-748548b6c16f?feedback_type=great_response) | [Irrelevant Answer](https://app.dosu.dev/response-feedback/11873b35-2776-42c3-b378-748548b6c16f?feedback_type=irrelevant_answer) | [Incorrect Sources](https://app.dosu.dev/response-feedback/11873b35-2776-42c3-b378-748548b6c16f?feedback_type=incorrect_sources) | [Too Verbose](https://app.dosu.dev/response-feedback/11873b35-2776-42c3-b378-748548b6c16f?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/11873b35-2776-42c3-b378-748548b6c16f?feedback_type=hallucination) | [Other](https://app.dosu.dev/response-feedback/11873b35-2776-42c3-b378-748548b6c16f?feedback_type=other)</sup>
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#7275