Closed ibnuda closed 7 years ago
I've found a problem when I upload data to server using enctype=form-data and the raw request body contains these two lines of
enctype=form-data
Content-Disposition: form-data; name="up; filename="little fish.PNG" Content-Type: image/png
For easier explanation, this SO thread.
And my question is, how should I deal with the first four line (request boundary, Content-Disposition, Content-Type, blank line) and the last one (request boundary)? How do I manipulate them for computational purpose? Thanks.
Closed. Should be fixed using http-part parser like this.
I've found a problem when I upload data to server using
enctype=form-data
and the raw request body contains these two lines ofFor easier explanation, this SO thread.
And my question is, how should I deal with the first four line (request boundary, Content-Disposition, Content-Type, blank line) and the last one (request boundary)? How do I manipulate them for computational purpose? Thanks.