Welcome! Log In Create A New Profile

Advanced

Re: Upload Progress Issue -- do not have "uploading" state

Yanxin Z.
April 21, 2011 12:24PM
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/.

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

Upload Progress Issue -- do not have "uploading" state

Yanxin Z. April 20, 2011 09:32PM

Re: Upload Progress Issue -- do not have "uploading" state

Yanxin Z. April 20, 2011 09:34PM

Re: Upload Progress Issue -- do not have "uploading" state

Ensiferous April 20, 2011 10:37PM

Re: Upload Progress Issue -- do not have "uploading" state

Yanxin Z. April 21, 2011 12:48AM

Re: Upload Progress Issue -- do not have "uploading" state

Yanxin Z. April 21, 2011 02:26AM

Re: Upload Progress Issue -- do not have "uploading" state

Yanxin Z. April 21, 2011 03:10AM

Re: Upload Progress Issue -- do not have "uploading" state

Yanxin Z. April 21, 2011 03:24AM

Re: Upload Progress Issue -- do not have "uploading" state

Brice Figureau April 21, 2011 05:44AM

Re: Upload Progress Issue -- do not have "uploading" state

Yanxin Z. April 21, 2011 12:24PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 173
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready