<div class="gmail_extra"><div class="gmail_quote">1 мая 2012 г. 13:36 пользователь maxttor <span dir="ltr"><<a href="mailto:nginx-forum@nginx.us" target="_blank">nginx-forum@nginx.us</a>></span> написал:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div id=":1fs">Можно<br>
ли сделать так, что бы nginx отдавал еще<br>
имя файла, что бы знать для какого<br>
прогресс бара изменить значение?</div></blockquote></div><div class="gmail_extra"><br></div>Например вот так:</div><div class="gmail_extra"><font face="'courier new', monospace">###############</font></div><div class="gmail_extra">
<div class="gmail_extra"><font face="'courier new', monospace"> location = /q.php {</font></div><div class="gmail_extra"><font face="'courier new', monospace"> upload_pass @upload_pass;</font></div>
<div class="gmail_extra"><font face="'courier new', monospace"> upload_pass_args on;</font></div><div class="gmail_extra"><font face="'courier new', monospace"> upload_store /data/<a href="http://domain.com/testupload">domain.com/testupload</a>;</font></div>
<div class="gmail_extra"><font face="'courier new', monospace"><br></font></div><div class="gmail_extra"><font face="'courier new', monospace"> upload_set_form_field nginx_files[$upload_field_name][name] $upload_file_name;</font></div>
<div class="gmail_extra"><font face="'courier new', monospace"> upload_set_form_field nginx_files[$upload_field_name][tmp_name] $upload_tmp_path;</font></div><div class="gmail_extra"><font face="'courier new', monospace"> upload_aggregate_form_field nginx_files[$upload_field_name][size] $upload_file_size;</font></div>
<div class="gmail_extra"><font face="'courier new', monospace"> upload_aggregate_form_field nginx_files[$upload_field_name][error] "$request_completion";</font></div><div class="gmail_extra">
<font face="'courier new', monospace"> upload_pass_form_field "^.*";</font></div>
<div class="gmail_extra"><span style="font-family:'courier new',monospace"> upload_cleanup 200;</span></div><div class="gmail_extra"><font face="'courier new', monospace"> error_page 415 = @upload_pass;</font></div>
<div class="gmail_extra"><font face="'courier new', monospace"> }</font></div><div class="gmail_extra"><font face="'courier new', monospace"><br></font></div><div class="gmail_extra"><font face="'courier new', monospace"> location @upload_pass {</font></div>
<div class="gmail_extra"><font face="'courier new', monospace"> fastcgi_pass <a href="http://127.0.0.1:9000">127.0.0.1:9000</a>;</font></div><div class="gmail_extra"><font face="'courier new', monospace"> fastcgi_index index.php;</font></div>
<div class="gmail_extra"><font face="'courier new', monospace"> fastcgi_param SCRIPT_FILENAME /</font>
<span style="font-family:'courier new',monospace">data</span> <font face="'courier new', monospace">/<a href="http://domain.com">domain.com</a>$fastcgi_script_name;</font></div><div class="gmail_extra"><font face="'courier new', monospace"> include fastcgi_params;</font></div>
<div class="gmail_extra"><font face="'courier new', monospace"> }</font></div><div><br></div><div class="gmail_extra"><font face="'courier new', monospace">###############</font></div><div class="gmail_extra">
<br class="Apple-interchange-newline"></div><div><br></div>-- <br><img src="http://lh6.ggpht.com/_uqI0hR4rI1E/TG968kR4jaI/AAAAAAAAAA0/uNYjd0YrmS0/image003.gif"> Think before you print.<br>Best regards, Alexey Bobok.<br>
</div>