cannot upload local images through the api #2377

Closed
opened 2026-02-21 17:45:02 -05:00 by yindo · 0 comments
Owner

Originally created by @lyfeng001 on GitHub (Apr 20, 2024).

Self Checks

  • 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).
  • Pleas do not modify this template :) and fill in all the required fields.

1. Is this request related to a challenge you're experiencing?

when upload an image through the api, we need to post a json containing a upload_file_id, but it can be got after the image is uploaded, so that i can't upload the image, and there is no some keys like "contents" to upload the image directly.

2. Describe the feature you'd like to see

I'd like to upload pics directly or upload the pics in the form of base64.

3. How will this feature improve your workflow or experience?

that will help me to upload images directly when i get them from a camera or something.

4. Additional context or comments

No response

5. Can you help us with this feature?

  • I am interested in contributing to this feature.
Originally created by @lyfeng001 on GitHub (Apr 20, 2024). ### Self Checks - [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] Pleas do not modify this template :) and fill in all the required fields. ### 1. Is this request related to a challenge you're experiencing? when upload an image through the api, we need to post a json containing a upload_file_id, but it can be got after the image is uploaded, so that i can't upload the image, and there is no some keys like "contents" to upload the image directly. ### 2. Describe the feature you'd like to see I'd like to upload pics directly or upload the pics in the form of base64. ### 3. How will this feature improve your workflow or experience? that will help me to upload images directly when i get them from a camera or something. ### 4. Additional context or comments _No response_ ### 5. Can you help us with this feature? - [x] I am interested in contributing to this feature.
yindo added the 🐞 bug label 2026-02-21 17:45:02 -05:00
yindo closed this issue 2026-02-21 17:45:02 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#2377