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

Trying the REST Client extension for VSCode #165

Open
utterances-bot opened this issue Oct 8, 2021 · 4 comments
Open

Trying the REST Client extension for VSCode #165

utterances-bot opened this issue Oct 8, 2021 · 4 comments

Comments

@utterances-bot
Copy link

Trying the REST Client extension for VSCode

https://asp.net-hacker.rocks/2021/03/01/rest-client-vscode.html

Copy link

Hi Jürgen ,
How can we post image? Like png or jpeg file

@JuergenGutsch
Copy link
Owner

Hi @deekshith-hari
That's a good question. I found the answer here by searching the page for "multipart/form-data":
https://github.com/Huachao/vscode-restclient

POST https://api.example.com/user/upload
Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW

------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="text"

title
------WebKitFormBoundary7MA4YWxkTrZu0gW
Content-Disposition: form-data; name="image"; filename="1.png"
Content-Type: image/png

< ./1.png
------WebKitFormBoundary7MA4YWxkTrZu0gW--

Hope it helps

Copy link

Thank you @JuergenGutsch . It worked. :)

Copy link
Owner

Great :-D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants