Your Web News in One Place

Help Webnuz

Referal links:

Sign up for GreenGeeks web hosting
May 16, 2022 12:08 pm GMT

Postman File Upload (Image & Video)

In this post, I will cover how to do file upload using Postman for both image and video. Postman makes it really easy to do file uploads with the help of form-data. Lets take a look at that

For this post, I will be using Imgur API (you are free to use any API that supports file upload). So here are the following things we need to successfully upload the file using Postman

Check out the video below to learn how to upload file using Postman:

  • As part of form-data, you will need to provide the necessary key-value
  • For key, change it from text to file and you will see Select Files as a value

Postman Select File

  • Upload the file by clicking on Select Files

Imgur API File Upload

  • Once the file is upload, simply hit Send and you should see a successful response (2xx).

File Upload Response

Video Upload

Similarly, you can upload a video or any other file type as well, if the API supports it.

Video Upload using Postman

Thats all there is in terms of file upload using Postman. As I said, Postman makes it really easy and straightforward to upload file.

If you are interested in learning more about Postman, check out this Postman playlist
https://www.youtube.com/watch?v=XzoIYpQ_k5E&list=PL6AdzyjjD5HCiZyLYZqjRrB15gHLs8uyV


Original Link: https://dev.to/automationbro/postman-file-upload-image-video-3cn1

Share this article:    Share on Facebook
View Full Article

Dev To

An online community for sharing and discovering great ideas, having debates, and making friends

More About this Source Visit Dev To