File Transfer
Section titled “File Transfer”ESP3D-X supports several methods for transferring files to and from the device.
HTTP Multipart Upload
Section titled “HTTP Multipart Upload”Upload to flash filesystem
Section titled “Upload to flash filesystem”POST /filesContent-Type: multipart/form-dataForm fields:
path— Target directory pathmyfiles— File(s) to upload<path><name>S— Size field for each file
Upload to SD card
Section titled “Upload to SD card”POST /sdfilesSame multipart format as flash upload.
Firmware update
Section titled “Firmware update”POST /updatefwUpload a .bin firmware file for OTA update.
WebDAV
Section titled “WebDAV”WebDAV provides standard file operations via HTTP methods:
| Method | Action |
|---|---|
| GET | Read file / list directory |
| PUT | Write file |
| DELETE | Delete file/directory |
| MKCOL | Create directory |
| PROPFIND | List properties |
Base URL: http://<esp-ip>/webdav/
Enable with: [ESP190]STATE=ON
WebSocket V1 Binary Transfer
Section titled “WebSocket V1 Binary Transfer”The /wsdata endpoint (subprotocol esp3d-v1) supports high-speed binary file transfer using the ESP3D WebSocket Protocol V1.
Upload sequence
Section titled “Upload sequence”- Probe — Send
SR, receiveRSwith idle state - Start — Send
SUwith path + filename + total size → receiveUS(ack) - Packets — Send
UPwith packet ID + data → receivePUack - End — Send
EU→ receiveUE
Download sequence
Section titled “Download sequence”- Probe — Send
SR, receiveRSwith idle state - Start — Send
SDwith path + filename → receiveDS(ack) - Packets — Server sends
DPwith packet ID + data → client sendsPDack - End — Server sends
ED→ client sendsDE
See WebSockets API for the complete V1 frame format.
SD Tools
Section titled “SD Tools”SD card files can also be managed via ESP commands: