-
-
Notifications
You must be signed in to change notification settings - Fork 344
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
File upload support in the HttpServer. #1792
File upload support in the HttpServer. #1792
Conversation
The most important code works but the sample needs some HTML magic to be easier to understand and use.
208383c
to
e0eaead
Compare
37676a9
to
0d034d1
Compare
I'm running this under the emulator (#1794 required) but data isn't getting into rBootItemOutputStream... |
Thanks for noticing this. Fetch the latest version of this PR and try again. Should work now. |
I like this PR :-) Potentially extremely useful. |
`useValue` remains set after parsing `Content-Disposition`, fails in `Content-Type` and aborts the entire thing. With extra debug we now get this: ``` 8969445 TCP received: 536 bytes 8969445 TCP onReadyToSendData: 1 8969445 The headers are complete 8969445 Mapped 'firmware' @ 0x00002000 8970422 TCP received: 107 bytes 8970422 TCP onReadyToSendData: 1 8972374 partBegin 8972374 readHeaderName('Content-Disposition') 8972374 readHeaderValue('form-data; name="firmware"; filename="App_Common.c"') 8972374 parser->name = 'firmware' 8972374 readHeaderName('Content-Type') 8972374 readHeaderValue('text/x-csrc') 8972374 partData(2 bytes) flashmem_write: 0x00002000, 0 8972374 rboot_write_flash: item.size: 3 8973351 partData(2 bytes) flashmem_write: 0x00002000, 4 8973351 rboot_write_flash: item.size: 5 8973351 partData(0 bytes) 8973351 rboot_write_flash: item.size: 5 8973351 partData(2 bytes) flashmem_write: 0x00002004, 0 8973351 rboot_write_flash: item.size: 7 ```
No description provided.