Closed mathieucarbou closed 11 months ago
Added FileUploadCard
Card _configRestore = Card(&_dashboard, FILE_UPLOAD_CARD, "Configuration Restore", ".txt");
_configRestore.update("/api/config/restore");
Note: /api/config/restore
is handled in the app with ESPAyncWebServer. ESP-DASH is not responsible to setup the endpoint and handle the fiel upload. ESP-DAHS just sends the submitted file to the configured endpoint.
LinkCard screenshot:
Note 1: We could also have a LinkTab variant (for pro)
Note 2: I did not generate the web page on purpose to let you decide if this can go OSS or not. I have implemented it in both because I think navigation to other useful components like ElegantOTA and WebSerial lacks a lot.