From 5935ceaf58f688b1d0e580b40aed1a87a129e20f Mon Sep 17 00:00:00 2001
From: Hieromon Ikasamo
fs : Save as the SPIFFS file in flash of ESP8266/ESP32 module.
sd : Save to an external SD device connected to ESP8266/ESP32 module.
-extern : Pass the content of the uploaded file to the uploader which is declared by the sketch individually. Its uploader must inherit **AutoConnectUploadHandler** class and implements *_open*, *_write* and *_close* function.
`void(const String&, const HTTPUpload&)`
`void(const String&, const HTTPUpload&)`
A data structure of the upload file as HTTPUpload. It is defined in the ESP8266WebServer (the WebServer for ESP32) library as follows: + +```cpp +typedef struct { + HTTPUploadStatus status; + String filename; + String name; + String type; + size_t totalSize; + size_t currentSize; + size_t contentLength; + uint8_t buf[HTTP_UPLOAD_BUFLEN]; +} HTTPUpload; +``` +
Refer to '[To upload to a device other than Flash or SD](acupload.md#to-upload-to-a-device-other-than-flash-or-sd)' in section [appendix](acupload.md) for details.