# How to upload images in form-data using data driven

**URL:** <https://community.postman.com/t/how-to-upload-images-in-form-data-using-data-driven/51434>\
**Category:** Help Hub\
**Tags:** request, file, data-driven\
**Created:** [September 6, 2023, 10:15am UTC](https://community.postman.com/t/how-to-upload-images-in-form-data-using-data-driven/51434 "2023-09-06T10:15:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![keerthimj](https://avatars.discourse-cdn.com/v4/letter/k/ee7513/32.png) [@keerthimj](https://community.postman.com/u/keerthimj)\
**Post date:** [September 6, 2023, 10:15am UTC](https://community.postman.com/t/how-to-upload-images-in-form-data-using-data-driven/51434/1 "2023-09-06T10:15:57Z")

</div>

How we can upload images while doing data-driven in Postman

I have all the image paths in the CSV file in each iteration we need to upload an image in the form-data key named document [File]

 ![Screenshot 2023-09-06 at 3.44.21 PM](https://us1.discourse-cdn.com/getpostman/original/3X/3/9/398da664342601e93eab30f4b1286baa821d2fe7.png)

---

<div class="post-metadata">

**Author:** ![danny-dainton](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/danny-dainton/32/29401_2.png) [@danny-dainton](https://community.postman.com/u/danny-dainton)\
**Post date:** [September 6, 2023, 2:47pm UTC](https://community.postman.com/t/how-to-upload-images-in-form-data-using-data-driven/51434/2 "2023-09-06T14:47:50Z")

</div>

Hey @keerthimj 👋

Welcome to the Postman Community! :postman:

I’m not sure that there is an _easy_ way to do this through the UI but I think that it could be achieved using Newman.

This is an old thread discussing a possible way to do this:

> [@Form-data images with iteration data variables](https://community.postman.com/t/form-data-images-with-iteration-data-variables/7987):
>
> I like to use newman with a images as POST data in the body for form-data. I can update upload an image but I like to run over multiple images as iterations. How can I make the form-data variable like {{image}} as file place holder and then link it to a local folder when using it with Newman?

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/system/32/29796_2.png) [@system](https://community.postman.com/u/system)\
**Post date:** [October 21, 2023, 2:48pm UTC](https://community.postman.com/t/how-to-upload-images-in-form-data-using-data-driven/51434/3 "2023-10-21T14:48:07Z")

</div>

Closed on October 21, 2023, 2:48pm UTC

This topic was automatically closed 45 days after the last reply. New replies are no longer allowed.
