Creating an issue and uploading an image at the same time #14705
Labels
modifies/api
This PR adds API routes or modifies them
type/proposal
The new feature has not been accepted yet but needs to be discussed first.
I am trying to create an issue using curl and uploading an image at once if it is possible. If not, is there a way to upload an image to an existing issue? I am new to APIs :)
I tried this:
curl -X POST "http://localhost:3000/api/v1/repos/x/x/issues"
-H "accept: application/json"
-H "Authorization: x"
-H "Content-Type: application/json"
-H "Content-Type: multipart/form-data"
-F "meta={ "body": "testing", "title": " test"}; type=application/json"
-F "attachment=@/home/x/Downloads/x.jpeg;type=image/jpeg" -i
The text was updated successfully, but these errors were encountered: