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

Chunked Transfer Encoding

Open untidy-hair opened this issue 11 years ago • 4 comments

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 avatar Apr 06 '14 20:04 untidy-hair

@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?

firegurafiku avatar Jan 31 '18 01:01 firegurafiku

In 2020 this problem still exists

rndm2 avatar Mar 30 '20 07:03 rndm2

@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?

rndm2 avatar Apr 06 '20 08:04 rndm2

I think the best would be to talk to Nginx developers and ask them to implement fully-functional body reception pipeline.

vkholodkov avatar Apr 06 '20 08:04 vkholodkov