nkolban / ESP32_Explorer

ESP32 Explorer
Apache License 2.0
144 stars 37 forks source link

File Upload Multipart not implemented #31

Open snahmad opened 6 years ago

snahmad commented 6 years ago

class MyMultiPart is comment out

Does HttpServer does not support File upload post?

chegewara commented 6 years ago

Its pretty old and to be honest i think its abandoned project. Even if ive been thinking about it as of nice tool for testing i didnt use it for a while. Maybe i dont know how to use it but never been able to make this part to work (sending and reading files from spiff).

snahmad commented 6 years ago

ok.

chegewara commented 6 years ago

Maybe @nkolban has some more to say?

snahmad commented 6 years ago

Sending large file cause stack overflow. I guess HttpServer does not handle multi-part.

D (1451808) HttpServerTask: HttpServer that was listening on port 80 has received a new client connection; sockFd=4098 D (1451819) HttpParser: >> parse: socket: fd: 4098 D (1451825) HttpParser: >> parseRequestLine: "POST /upload_file HTTP/1.1" [26] D (1451831) HttpParser: << parseRequestLine: method: POST, url: /upload_file, version: HTTP/1.1 Guru Meditation Error: Core 0 panic'ed (Unhandled debug exception) Debug exception reason: Stack canary watchpoint triggered (HttpServerTask)

Backtrace: 0x4000c350:0x3ffcf300 0x401436ab:0x3ffcf310 0x4013d2f9:0x3ffcf330 0x4013db3d:0x3ffcf3b0 0x4013dbae:0x3ffcf3e0 0x4010c753:0x3ffcf400 0x4010f9fe:0x3ffcf430 0x4010d82a:0x3ffd4080 0x40109e2a:0x3ffd4310 0x4010c2a0:0x3ffd4420 0x401436ab: pbuf_copy_partial at C:/Work/LibDev/esp32/esp-idf/components/lwip/core/pbuf.c:1247

0x4013d2f9: lwip_recvfrom at C:/Work/LibDev/esp32/esp-idf/components/lwip/api/sockets.c:1814

0x4013db3d: lwip_recvfrom_r at C:/Work/LibDev/esp32/esp-idf/components/lwip/api/sockets.c:1814

0x4013dbae: lwip_recv_r at C:/Work/LibDev/esp32/esp-idf/components/lwip/api/sockets.c:1814

0x4010c753: Socket::receive(unsigned char*, unsigned int, bool) at C:/Work/LibDev/esp32/esp-idf/components/cpp_utils/Socket.cpp:245

0x4010f9fe: HttpParser::parse(std::shared_ptr) at C:/Work/LibDev/esp32/esp-idf/components/cpp_utils/HttpParser.cpp:219

0x4010d82a: HttpRequest::HttpRequest(std::shared_ptr) at C:/Work/LibDev/esp32/esp-idf/components/cpp_utils/HttpRequest.cpp:98

0x40109e2a: HttpServerTask::run(void*) at C:/Work/LibDev/esp32/esp-idf/components/cpp_utils/HttpServer.cpp:323

0x4010c2a0: Task::runTask(void*) at C:/Work/LibDev/esp32/esp-idf/components/cpp_utils/Task.cpp:59