Uploading image using esp8266

Comments

1 comment

  • Avatar
    Maor Gariv

    Hi,

    Thanks for reaching out.

    Hardly an Arduino expert but judging from the error it looks like you're passing the parameters (file and upload_preset) in the headers and not in the BODY. 

    You can try something like this - 

    String PostData = "file=<image>&upload_preset=<preset>";

    //After headers and Host

    client.println(Postdata);

     

    Also, worth checking out the HTTP client.

    (As suggested in this GH thread)

     

    Hope it helps.

     

    Best,

    0
    Comment actions Permalink

Please sign in to leave a comment.