nginx-upload-module
nginx-upload-module copied to clipboard
multiline Content-Disposition not recognized
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--
Anyone have a fix for this?