Resolve confusion between req:body_qs and req:multipart_data #449

Closed
kvakvs opened this Issue Feb 25, 2013 · 1 comment

Comments

Projects
None yet
2 participants
@kvakvs

kvakvs commented Feb 25, 2013

When a form is POST'ed with multipart data, disallow using req:body_qs() and req:body() with a meaningful error or exception, because it interferes with req:multipart_data().

When a form is POST'ed with urlencoded content type, or when page is GET'ed, disallow using req:multipart_data with a meaningful error or exception.

Also disallow calling them in any succession more than once, since first call clears body and subsequent calls return no data causing confusion.

@essen

This comment has been minimized.

Show comment Hide comment
@essen

essen Nov 3, 2013

Member

I'll pre-emptively close this. multipart_data isn't and will not be documented. Instead an easy way to stream/parse what's coming from body/stream_body functions will be added. Thanks anyway!

Member

essen commented Nov 3, 2013

I'll pre-emptively close this. multipart_data isn't and will not be documented. Instead an easy way to stream/parse what's coming from body/stream_body functions will be added. Thanks anyway!

@essen essen closed this Nov 3, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment