Upload files with curl.

Like this:

curl -F ‘data=@path/to/local/file’ UPLOAD_ADDRESS

Dus om /home/Cellie/test.txt te uploaden naar 192.168.2.5/upload gebruik je:

 curl -F ‘data=@/home/Cellie/test.txt’ 192.168.2.5/upload 

Met username / password  inlog word dat:

 curl --user admin:esp32 -F 'data=@/home/Cellie/test.txt' 192.168.2.5/upload