Skip to content

Commit 020042e

Browse files
committed
Fix upload path
1 parent 40c9126 commit 020042e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libraries/WebServer/examples/UploadHugeFile/UploadHugeFile.ino

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ void handleCreate() {
1414
server.send(200, "text/plain", "");
1515
}
1616
void handleCreateProcess() {
17-
String path = server.pathArg(0);
17+
String path = "/" + server.pathArg(0);
1818
HTTPRaw& raw = server.raw();
1919
if (raw.status == RAW_START) {
2020
if (SD.exists((char *)path.c_str())) {

0 commit comments

Comments
 (0)