dify icon indicating copy to clipboard operation
dify copied to clipboard

File download from HTTP request saves with .bin extension instead wav

Open bikevit2008 opened this issue 1 year 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

0.15.2

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

  1. do workflow
  2. do http request node which in response got file
  3. end node with result
{
  "result": [
    {
      "dify_model_identity": "__dify__file__",
      "id": null,
      "tenant_id": "9b227b34-11d7-4cac-9c79-fd6a58704f66",
      "type": "audio",
      "transfer_method": "tool_file",
      "remote_url": null,
      "related_id": "5be399a8-581f-4ab7-9c64-e6ef610ea58b",
      "filename": "d0ebd0cb99dd43bfb157ca43388c219c.bin",
      "extension": ".bin",
      "mime_type": "audio/wav",
      "size": 122880,
...
    }
  ]
}

✔️ Expected Behavior

saves with wav extension

❌ Actual Behavior

saves with .bin extension

bikevit2008 avatar Jan 28 '25 22:01 bikevit2008

https://github.com/langgenius/dify/pull/13029 fixed here

bikevit2008 avatar Jan 28 '25 22:01 bikevit2008

Please see this pull request as well https://github.com/langgenius/dify/pull/12693

crazywoola avatar Jan 30 '25 08:01 crazywoola

Hi, @bikevit2008. I'm Dosu, and I'm helping the Dify team manage their backlog. I'm marking this issue as stale.

Issue Summary:

  • Bug in Dify version 0.15.2: Files downloaded from HTTP requests saved with .bin instead of .wav.
  • You referenced pull request #13029, which addresses this issue.
  • Crazywoola mentioned another related pull request, #12693, for further context or fixes.

Next Steps:

  • Please confirm if this issue is still relevant to the latest version of the Dify repository. If so, you can keep the discussion open by commenting on the issue.
  • Otherwise, this issue will be automatically closed in 15 days.

Thank you for your understanding and contribution!

dosubot[bot] avatar Mar 02 '25 16:03 dosubot[bot]