# Ideas on doing a POST to upload a file (trying to restore config.dat in ESPEasy)

**URL:** <https://discourse.nodered.org/t/ideas-on-doing-a-post-to-upload-a-file-trying-to-restore-config-dat-in-espeasy/13835>\
**Category:** General\
**Created:** [30 July 2019 11:09 UTC](https://discourse.nodered.org/t/ideas-on-doing-a-post-to-upload-a-file-trying-to-restore-config-dat-in-espeasy/13835 "2019-07-30T11:09:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [30 July 2019 11:09 UTC](https://discourse.nodered.org/t/ideas-on-doing-a-post-to-upload-a-file-trying-to-restore-config-dat-in-espeasy/13835/1 "2019-07-30T11:09:56Z")

</div>

I'm coding a backup/restore flow for devices using ESPEasy. The backup works great! a folder called ESPBRR is created and in it is a folder for each device found. Inside the device folder is a folder date/time stamped and inside that are the (up to) six ESPEasy files: config.dat, security.dat, rules1.txt, rules2.txt, rules3.txt and rules4.txt.

The restore works great except for the config.dat file which only seems to be restorable from with in ESPEasy. It does a POST to send the data and I can't figure out if there is a way to replicate that in Node-Red.

Any suggestions?

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [30 July 2019 11:13 UTC](https://discourse.nodered.org/t/ideas-on-doing-a-post-to-upload-a-file-trying-to-restore-config-dat-in-espeasy/13835/2 "2019-07-30T11:13:16Z")

</div>

The HTTP Request node can do File Upload - assuming you need to use `multipart/form-data` style file uploads.

The sidebar of the HTTP Request explains how to do file upload at the end of its help.
