Fileupload of ZK behind nginx

asked 2015-05-26 06:01:29 +0800

gds1987 gravatar image gds1987

Hi, all. The function of fileupload of ZK is very convenient. I has used it into my project inside tomcat. Access my project from tomcat directly and everything goes well, the progress bar is visible.

But when the tomcat is implemented into nginx server, using proxy_pass function. The nginx.conf is shown as followed:

    upstream tomcat_16_59{
        server fail_timeout=600s max_fails=5 weight=100;

    location /myproject/ {          
        proxy_pass http://tomcat_16_59;     
        sendfile     on;
        tcp_nopush   on;
                    proxy_set_header X-Forwarded-For $remote_addr;
        client_max_body_size 1024m; 
        client_body_buffer_size 512m;           
        proxy_connect_timeout 5; 
                    proxy_read_timeout 3600s;
        proxy_send_timeout 60; 
        proxy_buffer_size 16k; 
        proxy_buffers 4 64k; 
        proxy_busy_buffers_size 128k; 
        proxy_temp_file_write_size 128k;            

The upload function is OK, but the progress bar is not visible ! We can not see the progress status of uploading.

How to resolve this problem? Any suggestion or idea will be highly appreciated !

Version of ZK: version: 7.0.5-FL ; Browser: Chrome 42.0.2311.135 m ; Firefox 36.0.1

delete flag offensive retag edit

1 Answer

Sort by ยป oldest newest most voted

answered 2018-09-12 05:10:24 +0800

naarani gravatar image naarani

it's a problema about the body size, probably you need to raise clientbodybuffer_size 512m;

link publish delete flag offensive edit
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

1 follower



Asked: 2015-05-26 06:01:29 +0800

Seen: 11 times

Last updated: Sep 12 '18

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More