# Struggling to turn a curl command with file upload to node red flow

**URL:** <https://discourse.nodered.org/t/struggling-to-turn-a-curl-command-with-file-upload-to-node-red-flow/72041>\
**Category:** General\
**Created:** [11 December 2022 17:06 UTC](https://discourse.nodered.org/t/struggling-to-turn-a-curl-command-with-file-upload-to-node-red-flow/72041 "2022-12-11T17:06:33Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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:** [11 December 2022 20:17 UTC](https://discourse.nodered.org/t/struggling-to-turn-a-curl-command-with-file-upload-to-node-red-flow/72041/2 "2022-12-11T20:17:12Z")

</div>

Have you searched the forum? It has been covered many times.

This answer is a good example...

> [@Posting PDF-files multipart/form-data solution](https://discourse.nodered.org/t/posting-pdf-files-multipart-form-data-solution/58914/4):
>
> The help sidebar for the HTTP Request node tells you how to do a file upload. File Upload To perform a file upload, msg.headers["content-type"] should be set to multipart/form-data and the msg.payload passed to the node must be an object with the following structure: { "KEY": { "value": FILE\_CONTENTS, "options": { "filename": "FILENAME" } } } The values of KEY , FILE\_CONTENTS and FILENAME should be set to the appropriate values.

---

_[View the full topic](https://discourse.nodered.org/t/struggling-to-turn-a-curl-command-with-file-upload-to-node-red-flow/72041)._
