# How to upload files in postman which is a property in an object of array

**URL:** <https://community.postman.com/t/how-to-upload-files-in-postman-which-is-a-property-in-an-object-of-array/17838>\
**Category:** Help Hub\
**Created:** [November 18, 2020, 6:19pm UTC](https://community.postman.com/t/how-to-upload-files-in-postman-which-is-a-property-in-an-object-of-array/17838 "2020-11-18T18:19:05Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![utkuozan](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/utkuozan/32/6414_2.png) [@utkuozan](https://community.postman.com/u/utkuozan)\
**Post date:** [November 18, 2020, 6:19pm UTC](https://community.postman.com/t/how-to-upload-files-in-postman-which-is-a-property-in-an-object-of-array/17838/1 "2020-11-18T18:19:05Z")

</div>

I am developing a REST API where I need to accept an array of objects. I have made a search and know how to upload a file with other parameters. Also I can send multiple files by adding them to body. But I need to send them as a property of an object and the API endpoint accepts an array of this object.

Let me explain it with an example

```
public class StaffInfo
{
    public string FirstName { get; set; }
    public string LastName { get; set; }
    public IFormFile Photo { get; set; }
}

[HttpPost]
[Route("api/staff/create")]
public void AddNewStaff(StaffInfo[] newStaff)
{
    :
    :
}

```

I want to test this endpoint and can’t figure out how to send data with PostMan.

Regards.
