# In postman while uploading a file possible to get the file properties and pass as parameter

**URL:** <https://community.postman.com/t/in-postman-while-uploading-a-file-possible-to-get-the-file-properties-and-pass-as-parameter/22995>\
**Category:** Help Hub\
**Tags:** file, uploads\
**Created:** [April 22, 2021, 4:40pm UTC](https://community.postman.com/t/in-postman-while-uploading-a-file-possible-to-get-the-file-properties-and-pass-as-parameter/22995 "2021-04-22T16:40:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![gsivaprabu](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/gsivaprabu/32/8201_2.png) [@gsivaprabu](https://community.postman.com/u/gsivaprabu)\
**Post date:** [April 22, 2021, 4:40pm UTC](https://community.postman.com/t/in-postman-while-uploading-a-file-possible-to-get-the-file-properties-and-pass-as-parameter/22995/1 "2021-04-22T16:40:54Z")

</div>

In postman, while uploading a file possible to get the file properties and pass them as a parameter

For example, we can upload 1 file test.doc as 40 MB, We can get the size and share as query string that value as 40? like this?

**file.name,file.size** any workarounds?

pass as a query string as like below

**[https://10.0.125.88/api/filestatus?name=“test.doc”&size=40](https://10.0.125.88/api/filestatus?name=%22test.doc%22&size=40)**

---

<div class="post-metadata">

**Author:** ![hannah.neil](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/hannah.neil/32/4477_2.png) [@hannah.neil](https://community.postman.com/u/hannah.neil)\
**Post date:** [April 26, 2021, 7:40pm UTC](https://community.postman.com/t/in-postman-while-uploading-a-file-possible-to-get-the-file-properties-and-pass-as-parameter/22995/2 "2021-04-26T19:40:07Z")

</div>

Hi @gsivaprabu - welcome to the community! I’ve moved your post to Help because it is the best category for getting help.

Could you give us more information about your problem? Here are [some guidelines](https://community.postman.com/t/how-to-best-ask-questions-on-community-to-get-the-answers-you-need/16912) for helpful details. 🙂

---

<div class="post-metadata">

**Author:** ![dougsillars](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/dougsillars/32/10659_2.png) [@dougsillars](https://community.postman.com/u/dougsillars)\
**Post date:** [December 16, 2021, 11:42pm UTC](https://community.postman.com/t/in-postman-while-uploading-a-file-possible-to-get-the-file-properties-and-pass-as-parameter/22995/3 "2021-12-16T23:42:34Z")

</div>

As best as I can tell, the **pre-request Script** function in Postman is pre-flight - so the file is not yet loaded into memory for any file manipulation (you’ll get the path to the file on your system, but no data on the file itself).

```auto
request
{mode: "formdata", formdata: [1]}
mode: "formdata"
formdata: [1]
0: {…}
description: {…}
key: "document"
type: "file"
src: "/<pathtofile>/file.pdf"

```
