Skip to content

The parameter 'name' in the 'update-by_file' API is incorrectly overwritten by the file name of 'file'. #9211

@glacierck

Description

@glacierck

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

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

send
curl --location --request POST 'http://192.168.1.210/v1/datasets/{dataset_id}/documents/{document_id}/update_by_file' \ --header 'Authorization: Bearer {api_key}' \ --form 'data="{"name":"A.txt","indexing_technique":"high_quality"}";type=text/plain' \ --form 'file=@"/B.txt"'

✔️ Expected Behavior

The document is named A.txt

❌ Actual Behavior

The document is named B.txt

Metadata

Metadata

Labels

🐞 bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions