Upload Progress Issue -- do not have "uploading" state
Yanxin Z.
lists at ruby-forum.com
Thu Apr 21 20:22:59 MSD 2011
Hello Brice,
Thank you for your help.
I changed my conf: 1) comment out break; 2) put proxy_pass in front of
upload_pass.
However, the issue is the same. Can not track upload status.
I find pioneer encountered the same issue before.
http://forum.nginx.org/read.php?2,88713,162600
I try to figure out the part that is not working. Could you give me some
hints?
For the uploading check, chrome has its own upload status check, I use
it to track the file uploading and compare it with upload module.
Yanxin
272 location ~ /api/1.0/web/upload_internal {
273 #proxy to upstream server
274 proxy_pass https://127.0.0.1;
275
276 # Pass altered request body to this location
277
278 if ($request_method = POST) {
279 upload_pass @post_upload;
280 #break;
281 }
282
283
284 # Store files to this directory
285 upload_store /opt/nginx/html/upload_file;
286
287 # Allow uploaded files to be read only by user
288
289 upload_store_access user:rw group:rw all:rw;
290 upload_set_form_field $upload_field_name.name
"$upload_file_name";
291 upload_set_form_field $upload_field_name.content_type
"$upload_content_type";
292 upload_set_form_field $upload_field_name.path
"$upload_tmp_path";
293
294 # Inform backend about hash and size of a file
295 upload_aggregate_form_field "${upload_field_name}_md5"
$upload_file_md5;
296 upload_aggregate_form_field "${upload_field_name}_size"
$upload_file_size;
297
298 upload_pass_form_field
"^X-Progress-ID$|^submit$|^email$|^.*
id$|^sha256$|^.*ip$|^.*port$|username|filename|fileurl|vsys";
299
300
301 # track uploads in the 'proxied' zone
302 # remember connections for 30s after they finished
303
304 upload_cleanup 400 404 499 500-505;
305
306 track_uploads proxied 10s;
307
308 }
--
Posted via http://www.ruby-forum.com/.
More information about the nginx
mailing list