Skip to content

File upload in HTTPS #153

Open
Open
@project-header

Description

@project-header

Hello,

Describe Your Goal
I create this issue because I would like to upload files with esp32_https_server.

Before I was using WebServer.h which allowed to have the upload() function.
Then I switched to HTTPS with HTTPSServer.hpp and I was able to convert all my code (which is functional in HTTPS) except for the file upload.

Here is approximately the result I would like to obtain :
https://github.com/espressif/arduino-esp32/blob/master/libraries/ArduinoOTA/examples/OTAWebUpdater/OTAWebUpdater.ino

What Does Your Project Look Like ?
Currently, I use the following libraries

#include <HTTPClient.h>		/// To communicate with an api
#include <SPIFFS.h>
#include <EEPROM.h>
#include <WiFi.h>
#include <Update.h>
#include <string>

#include <HTTPSServer.hpp>
#include <SSLCert.hpp>
#include <HTTPRequest.hpp>
#include <HTTPResponse.hpp>
#include <HTTPURLEncodedBodyParser.hpp>

Module ESP32
I use KitC v4 ESP32-WROOM-32
Hardware : ESP32 240MHz, 520KB RAM, 16MB Flash

Software (please complete the following information if applicable)

  • IDE : Sublime Text v3.2.2 & PlateformIO v5.1.1
  • OS : Windows 10 Famille v21H2
  • Client used to access the server : Firefox mobile v98.3.0

Additional context
Thank you in advance for your help !

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions