Skip to content

Instantly share code, notes, and snippets.

@wizlee
Created September 12, 2022 15:37
Show Gist options
  • Save wizlee/4ec4bd9c1028d553f49fe832fa26f2b4 to your computer and use it in GitHub Desktop.
Save wizlee/4ec4bd9c1028d553f49fe832fa26f2b4 to your computer and use it in GitHub Desktop.
Sample for uploading image into thumbor server using http request
@host = http://localhost:8888
POST {{host}}/image
Content-Type: multipart/form-data; boundary=----------------------------11df125d8b12
----------------------------11df125d8b12
Content-Length: 822
----------------------------11df125d8b12
< ./upload.http
----------------------------11df125d8b12--
###
#----------------------
# References:
# https://thumbor.readthedocs.io/en/latest/how_to_upload_images.html#upload-an-image-via-a-form
# https://stackoverflow.com/questions/61473990/how-to-post-an-image-with-form-data-in-rest-client-for-vscode
# https://marketplace.visualstudio.com/items?itemName=humao.rest-client
#----------------------
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment