nginx-upload-module
nginx-upload-module copied to clipboard
Chunked Transfer Encoding
Hi, does anyone know if this module support chunked_transfer_encoding?
Nginx with this module returns 400 for the request below
curl -X POST https://servername.com/files.json -F 'content=@/path/to/video.mpg;type=video/mpeg' -H 'Transfer-Encoding: chunked'
While uploading succeeds when I take off "-H 'Transfer-Encoding: chunked'".
I also found this page mention the module.
http://wiki.nginx.org/HttpChunkinModule "May not work with certain 3rd party modules like the upload module because it implements its own request body reading mechanism. " (I know HttpChunkinModule is now taken into the nginx core module.)
Any help would be appreciated. Thank you.
@untidy-hair
Unfortunately, in the year 2018 the same behavior is observed. Were you finally able to feed the module with a chunked multipart/form-data?
@vkholodkov
Sorry for bothering you, but let me bring your attention to this ticket. I'm not familiar with the nginx' codebase, but I feel there must be a straightforward way to reorder request processing pipeline in such a way that the form is parsed after the nginx core had flattened the chunked stream. Could you give any hints?
In 2020 this problem still exists
@vkholodkov we are working on easy-reproduce environment, and ready to start working on a fix, could you please suggest us where to start problem searching?
I think the best would be to talk to Nginx developers and ask them to implement fully-functional body reception pipeline.