nginx-upload-module icon indicating copy to clipboard operation
nginx-upload-module copied to clipboard

multiline Content-Disposition not recognized

Open mvrhov opened this issue 13 years ago • 1 comments

upload module only recognizes headers if they are in a single line.. the most problematic on is Content-Disposition

This one works:

--FormBoundary_dNC89KxOWaziZb1mJpHL2f1m2
Content-Disposition: form-data; name="details"
Content-Type: application/json

{"uri":"fooo:\/\/fn","time":"2011-12-19T09:06:26.000"}
--FormBoundary_dNC89KxOWaziZb1mJpHL2f1m2
Content-Disposition: form-data; name="file"; filename="data taken from.txt"
Content-Type: application/octet-stream

oijgdifojgodfjgodjfogdfo
--FormBoundary_dNC89KxOWaziZb1mJpHL2f1m2--

This one doesn't. Please notice that the filename part is in new line and indented in this case by one space, but by RFC there can be multiple white spaces

--FormBoundary_dNC89KxOWaziZb1mJpHL2f1m2
Content-Disposition: form-data; name="details"
Content-Type: application/json

{"uri":"fooo:\/\/fn","time":"2011-12-19T09:06:26.000"}
--FormBoundary_dNC89KxOWaziZb1mJpHL2f1m2
Content-Disposition: form-data; name="file"; 
 filename="data taken from.txt"
Content-Type: application/octet-stream

oijgdifojgodfjgodjfogdfo
--FormBoundary_dNC89KxOWaziZb1mJpHL2f1m2--

mvrhov avatar Feb 14 '12 15:02 mvrhov

Anyone have a fix for this?

skwasha avatar Jun 19 '12 01:06 skwasha