Repository navigation
In version 1.18.1, when calling the https://api.dify.ai/v1/workflows/{workflow_id}/run API, I found that the file parameter gives an error. What could be causing this? Because the same parameter format worked fine in version 1.13.3. #45704
Unanswered
Spell-maker-Y
asked this question in
Help
Replies: 2 comments 2 replies
|
Dify checks that the run user owns the file, and end users are per app. |
2 replies
|
Which Dify version and deployment are in use, and were the upload and workflow-run requests made with the same app API key? Please include the redacted upload response and run request body, with file IDs and credentials removed. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Self Checks
1. Is this request related to a challenge you're experiencing? Tell me about your story.
I've correctly uploaded the file and got the file ID.
[
{
"id": "fc9dcfe5-251a-4aa2-a6e8-3c7587318992",
"reference": null,
"name": "f58c1a9e5378468b948eae8b460e7bc7.pdf",
"size": 226651,
"extension": "pdf",
"mime_type": "application/pdf",
"created_by": "9b3c6102-90f7-40c9-931a-d04cb2f33b21",
"created_at": 1793948541,
"preview_url": null,
"source_url": "/files/fc9dcfe5-251a-4aa2-a6e8-3c7587318992/file-preview?timestamp=1793948541&nonce=3b90476be596ac0328d8ee84d6320a0f&sign=-fBbMB-f0XED8kgdx78lhjlqMEJaQIMMP2W0pLDI-0E%3D",
"original_url": null,
"user_id": null,
"tenant_id": "65680163-5e96-471b-a38a-98f2f457bc2e",
"conversation_id": null,
"file_key": null
}
]
Here are the parameters I used to call the run API
[Object: {
"inputs": {
"files": [
{
"type": "document",
"transfer_method": "local_file",
"upload_file_id": "fc9dcfe5-251a-4aa2-a6e8-3c7587318992"
}
],
"category_list_en": "medical and health industry, Infrastructure (municipal/transportation/water conservancy) industry, Education and scientific research industry, energy and chemical industry, Information technology and digital industry, Agriculture, forestry, animal husbandry and fishery industry, financial services industry, government procurement, Culture, tourism and sports industry, Environmental sanitation industry, other, industrial manufacturing industry",
},
"response_mode": "blocking",
"user": "n8n-bot"
}
]
The response is Bad request - please check your parameters
Invalid upload file
PS:When I was uploading the file, the user value was also n8n-bot
2. Additional context or comments
No response
All reactions