Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Creating an issue and uploading an image at the same time #14705

Open
aosmdev opened this issue Feb 17, 2021 · 0 comments
Open

Creating an issue and uploading an image at the same time #14705

aosmdev opened this issue Feb 17, 2021 · 0 comments
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.

Comments

@aosmdev
Copy link

aosmdev commented Feb 17, 2021

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

@lunny lunny added 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. labels Feb 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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.
Projects
None yet
Development

No branches or pull requests

2 participants