Send file to ESPeasy

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
ingoiot
Normal user
Posts: 43
Joined: 15 Aug 2019, 22:09

Send file to ESPeasy

#1 Post by ingoiot » 04 Nov 2019, 19:50

hi,
can i send a file directly to the esp without using the buildin fliebrowser?
i'd like to send a dashbord.htm via app.

TD-er
Core team member
Posts: 1808
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Send file to ESPeasy

#2 Post by TD-er » 04 Nov 2019, 21:01

I never tried it, but it should be possible using POST.
Note that some files cannot be overwritten like this, but any file with .htm extension does not have a protection filter.

ingoiot
Normal user
Posts: 43
Joined: 15 Aug 2019, 22:09

Re: Send file to ESPeasy

#3 Post by ingoiot » 04 Nov 2019, 21:23

tnx, ill try it

tiomny
Normal user
Posts: 2
Joined: 23 Sep 2019, 20:11

Re: Send file to ESPeasy

#4 Post by tiomny » 12 Nov 2019, 18:53

Yes, POST request to http://<ESPEasy Ip>/upload uploads a file to filesystem. Besides, you can update the firmware using /update path.

riker1
Normal user
Posts: 313
Joined: 26 Dec 2017, 18:02

Re: Send file to ESPeasy

#5 Post by riker1 » 14 Nov 2019, 09:08

same for rules....

you can upload rules with curl

for rule 1 filename has to be rules1.txt and so on....

Code: Select all

[curl -v -F upload=@"/path/filename"  http:<IP>/upload/[code]

TD-er
Core team member
Posts: 1808
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Send file to ESPeasy

#6 Post by TD-er » 14 Nov 2019, 11:18

riker1 wrote:
14 Nov 2019, 09:08

Code: Select all

curl -v -F upload=@"/path/filename"  http:<IP>/upload/
Shouldn't there be a "//" between http:<IP>
?

Post Reply

Who is online

Users browsing this forum: Google [Bot] and 5 guests