# Reverse Proxy File Upload Failure

**URL:** <https://www.ruby-forum.com/t/reverse-proxy-file-upload-failure/243738>\
**Category:** NGINX\
**Created:** [December 28, 2015, 8:43pm UTC](https://www.ruby-forum.com/t/reverse-proxy-file-upload-failure/243738 "2015-12-28T20:43:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rafa\_F](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/958977/32.png) [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Post date:** [December 28, 2015, 8:43pm UTC](https://www.ruby-forum.com/t/reverse-proxy-file-upload-failure/243738/1 "2015-12-28T20:43:30Z")

</div>

I am running Nginx v1.8.0 to serve all my static files and node.js to do  
the dynamic stuff. One of the things Nginx needs to do is proxy files  
over to node.js which stores the file. node.js seems to get ~26K of the  
file and then nothing (not even sure the connection closes when the data  
“finishes” sending).

My configuration is so:  
location /attachment\_upload/ {  
client\_body\_temp\_path /tmp/;  
client\_body\_in\_file\_only clean;  
client\_body\_buffer\_size 256k;  
client\_max\_body\_size 1g;

```
 proxy_set_header X-FILE $request_body_file;
 proxy_http_version 1.1;
 proxy_buffering off;
 proxy_pass http://10.10.1.20:8090/attachment_upload/;
 expires epoch;

```

}

I had setup curl to see if I could get more information. It returns  
right away (so it does not look like a time-out to me) without error. I  
have checked the Nginx error logs and do not see anything in there.

Not sure what to check next…
