Testing file uploads with Postman (multipart/form-data)

preview_player
Показать описание
I will show you how to debug an upload script and demonstrate it with a tool called Postman that can make requests encoded as "multipart/form-data" so that you can send also a file.

After this, we will go even further and write tests and begin automating the process.

Here is the Git repository containing the files used in this tutorial:

If this was helpful and you want to support me create more videos like this one, please consider subscribing.

--

⭐️ Video contents ⭐️

⌨️ 00:00 - Introduction
⌨️ 01:38 - Upload a file
⌨️ 06:14 - Write tests for file upload
⌨️ 10:00 - Automate with Newman
⌨️ 17:10 - Upload multiple files

--

⭐️ 🎓 The complete guide to Postman (online course) ⭐️

Want to learn more about Postman? Check my Postman online course.

Get it at a special price and help support this YouTube channel:

--

⭐️ 💬 I have a question. ⭐️

I do my best to answer all comments here on YouTube but I cannot make any guarantees.

If you have a question, it is best to ask your question on Discord, on the Postman User Group on Facebook, or on the Postman Community (links below).

If you are asking a question, make sure to include as many details as possible, including screenshots.

If you have purchased the Postman online course, please use the Q&A section or send me a message directly.

Please do not email me or contact me on other channels as I might not be able to answer. Sorry!

--

⭐️ 💡 I have a video idea ⭐️

Do you want me to create a video on a specific topic? Just fill out the form below:

--

⭐️ 📺 Learn Postman on YouTube ⭐️

Collection of video tutorials:

___

⭐️ 📕 Free resources ⭐️

📌 DOWNLOAD the FREE Postman Quick Reference Guide

📌 Ask a question on Discord (unofficial)

📌 Join the Postman User Group on Facebook (unofficial)

📌 Postman community forum (official)

--

⭐️ 📩 Contact & Imprint ⭐️

👉 Let's be friends

👉 Follow me on Twitter:

👉 Follow me on Medium:

👉 Follow me on Facebook:

👉 Let's connect on LinkedIn:

Рекомендации по теме
Комментарии
Автор

I found answers to some of my questions which I was searching for a long time. Thank you very much.

erpnedir
Автор

Thank you! It was very helpful and it still works :)

WrongR
Автор

Hi! I have 2 reconds in CSV file, but Newman iterates thru 4 records somehow. 2 test passes and other 2 fails obviously. Do you know why does it happen?

WrongR
Автор

How can we create a bucket and upload a file on it via POSTMAN?

ansulaas
Автор

This is fantastic! Very professional!

maddevskilz
Автор

Thanks Valentina..This is really a nice video which explains the steps very well

CyclingEveryday
Автор

Thank you so much and wow running well ...

warnetpejaten
Автор

I have try this step but i am not able to input the image with the given above step in postman.
Note:-1) I am trying to input image in frappe form,
2) I also have some other parameters like datetime, date, text, number they are being inputed with the help of this method,
3) Showing error:- api_tickengenerate() missing 1 required positional argument: 'save_image'\\n\"]"

patelmilan
Автор

Hi, I am trying to upload file but request body its going as undefined, could you please help me on these

chandanad
Автор

Hello Valentin,
on running 2 iterations of data.csv i am getting - iteration: 2 read ECONNRESET at request.
Can you help me with this error.

priyaporwal
Автор

mine gives error every time i.e this file isnt in working how to solve

subhamchoudhary
Автор

Can i access local file from postman where json schema is stored? i want to use same file in test case to validate schema.

shahnawazalam
Автор

Object reference not set to an instance of an object. getting error message while uploading file. Whats the issue ?

nasirmehmood_
Автор

I wish there was a way to set "src" value from postman.

I've ended up writing a custom script to override the "src" value for every "file" field of the collection json file, which is a pain :'(

mykelchang
Автор

What data in request body is that a byte array something else

leophysics
Автор

Hi Valentin,
I have question, if I want to upload file as raw (in body) data with file name and json string .How can we achieve this? Please suggest.
Regards,
Krishna

viratlilly
Автор

Can we send object as request body from UI along with multi part file?

sinchanam
Автор

Download the FREE Postman Quick Reference Guide

vdespa
Автор

thank you, I was strugling on how to upload files....

ojiamboivangsp
Автор

Can we send more than 2gb files by using @post request

obulareddyg