-
FEATURED COMPONENTS
First time here? Check out the FAQ!
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{
ip_hash;
server 127.0.0.1:8089 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
it's a problema about the body size, probably you need to raise clientbodybuffer_size 512m;
Asked: 2015-05-26 06:01:29 +0800
Seen: 13 times
Last updated: Sep 12 '18