xyncro / freya

Freya Web Stack - Meta-Package
https://freya.io
Other
330 stars 30 forks source link

Content-Disposition #192

Closed ibnuda closed 7 years ago

ibnuda commented 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

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.

ibnuda commented 7 years ago

Closed. Should be fixed using http-part parser like this.