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