# How to handle/get data for multipart/form-data requests

**URL:** <https://forum.inductiveautomation.com/t/how-to-handle-get-data-for-multipart-form-data-requests/107562>\
**Category:** Ignition\
**Created:** [June 19, 2025, 4:06am UTC](https://forum.inductiveautomation.com/t/how-to-handle-get-data-for-multipart-form-data-requests/107562 "2025-06-19T04:06:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![colle](https://avatars.discourse-cdn.com/v4/letter/c/ecccb3/32.png) [@colle](https://forum.inductiveautomation.com/u/colle)\
**Post date:** [June 19, 2025, 4:06am UTC](https://forum.inductiveautomation.com/t/how-to-handle-get-data-for-multipart-form-data-requests/107562/1 "2025-06-19T04:06:03Z")

</div>

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/7/1/71b72dc08c30c9cc344d95cd34c23aa32c91eb78.png)  
The request from the browser is as above, and my backend Jython needs to run DocumentManagement.uploadFile(self, fileName, fileSize, fileBytes), that is, to get these data, but I don't know how to properly handle multipart/form- data requests

When I print request[‘data’] it comes up with an array of binary codes

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [June 20, 2025, 4:55pm UTC](https://forum.inductiveautomation.com/t/how-to-handle-get-data-for-multipart-form-data-requests/107562/2 "2025-06-20T16:55:28Z")

</div>

Unfortunately, there's no easy solution to parse incoming multipart data in Webdev - you basically have to do it yourself:

> [@Decode "multipart/form-data" with WebDev](https://forum.inductiveautomation.com/t/decode-multipart-form-data-with-webdev/41173):
>
> We have a Zebra label printer that can send HTTP POST requests when certain conditions are met, such as when the ribbon is low. It uses “multipart/form-data” content type, and I am having difficulties figuring out how to parse the data so I can decipher the exact nature of the alert. Does anyone know how I can decode “multipart/form-data” so I can decipher the alert message from the printer? I have tried a few different ways without success. I may be missing something obvious.
