# Multipart data (json +file)

**URL:** <https://discourse.nodered.org/t/multipart-data-json-file/48134>\
**Category:** General\
**Created:** [7 July 2021 12:24 UTC](https://discourse.nodered.org/t/multipart-data-json-file/48134 "2021-07-07T12:24:46Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [8 July 2021 11:02 UTC](https://discourse.nodered.org/t/multipart-data-json-file/48134/5 "2021-07-08T11:02:22Z")

</div>

That won't be multipart.

Check this other thread (that I found by searching **multipart** )...

> [@Send a file with multipart/form-data to OctoPrint REST API](https://discourse.nodered.org/t/send-a-file-with-multipart-form-data-to-octoprint-rest-api/7534/15):
>
> That isn't 100% true. The HTTP In node does support file uploads now - select Post and tick the box to enable file uploads. To send a multipart upload from the HTTP Request node is more work, but doable. Here's a Function that will construct a suitable message to pass to the HTTP Request node: msg.headers = { "Content-Type": "multipart/form-data; boundary=------------------------d74496d66958873e" } msg.payload = '--------------------------d74496d66958873e\r\n'+ 'Content-Disposition: fo…

---

_[View the full topic](https://discourse.nodered.org/t/multipart-data-json-file/48134)._
