forked from me-no-dev/ESPAsyncWebServer
add size to returned file data
This commit is contained in:
@@ -370,7 +370,9 @@ void SPIFFSEditor::handleRequest(AsyncWebServerRequest *request){
|
|||||||
output += (isDir)?"dir":"file";
|
output += (isDir)?"dir":"file";
|
||||||
output += "\",\"name\":\"";
|
output += "\",\"name\":\"";
|
||||||
output += String(entry.name()).substring(1);
|
output += String(entry.name()).substring(1);
|
||||||
output += "\"}";
|
output += "\",\"size\":";
|
||||||
|
output += String(entry.size());
|
||||||
|
output += "}";
|
||||||
entry.close();
|
entry.close();
|
||||||
}
|
}
|
||||||
output += "]";
|
output += "]";
|
||||||
|
Reference in New Issue
Block a user