ПРОЕКТЫ 


  АРХИВ 


Apache-Talk @lexa.ru 

Inet-Admins @info.east.ru 

Filmscanners @halftone.co.uk 

Security-alerts @yandex-team.ru 

nginx-ru @sysoev.ru 


  СТАТЬИ 


  ПЕРСОНАЛЬНОЕ 


  ПРОГРАММЫ 



ПИШИТЕ
ПИСЬМА












     АРХИВ :: nginx-ru
Nginx-ru mailing list archive (nginx-ru@sysoev.ru)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Upload module + cleanup после обработки


  • To: nginx-ru@xxxxxxxxx
  • Subject: Re: Upload module + cleanup после обработки
  • From: Алексей Бобок <alexey.bobok@xxxxxxxxx>
  • Date: Sun, 19 Feb 2012 21:10:54 +0200
  • Authentication-results: mr.google.com; spf=pass (google.com: domain of alexey.bobok@xxxxxxxxx designates 10.229.77.13 as permitted sender) smtp.mail=alexey.bobok@xxxxxxxxx; dkim=pass header.i=alexey.bobok@xxxxxxxxx
  • Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=ijQNN23ITIyXPPtsw2fUid1VVO1PPgwsJdV0EBUbnXs=; b=rKXpcbEYbBhhpxlQcd45PxAbFFCMq9Xqo07FtVX3RWKSCLqqjEHgsU3m9uFOnatyTQ ulpRhwDy8ZS+YbIeW6iupSXGO95CCQD4WJe4EeXzLuqG+YxteVLoOCoY4RyMr4wvTAXD S2+h3WnokjA0wUoD7MqyLdW0Q0dWaCAUwSfVw=
  • In-reply-to: <CAH05gjZ=TzELRF4G6Rb=0ssbD5YJgO-236cu0khyqmJZUOwfrw@mail.gmail.com>
  • References: <CAH05gjZ=TzELRF4G6Rb=0ssbD5YJgO-236cu0khyqmJZUOwfrw@mail.gmail.com>

Включил моск и в исходнике ngx_http_upload_module.c сделал:

- if (lo < 400 || hi > 599) {
+ if (lo < 200 || hi > 599) {

- "value(s) \"%V\" must be between 400 and 599",
+ "value(s) \"%V\" must be between 200 and 599",

Вопрос закрыт.

19 февраля 2012 г. 18:34 пользователь Алексей Бобок <alexey.bobok@xxxxxxxxx> написал:
Приветствую.

Как сделать upload_cleanup файлу, после того, как бекенд ответил code 200?
Нужно удалять файл из upload_store, после того как PHP обработало модифицированный POST.
Спасибо.

st1# nginx -V
nginx: nginx version: nginx/1.0.10
nginx: TLS SNI support enabled
nginx: configure arguments: --prefix=/usr/local/etc/nginx --with-cc-opt='-I /usr/local/include' --with-ld-opt='-L /usr/local/lib' --conf-path=/usr/local/etc/nginx/nginx.conf --sbin-path=/usr/local/sbin/nginx --pid-path=/var/run/nginx.pid --error-log-path=/var/log/nginx-error.log --user=www --group=www --with-file-aio --http-client-body-temp-path=/var/tmp/nginx/client_body_temp --http-fastcgi-temp-path=/var/tmp/nginx/fastcgi_temp --http-proxy-temp-path=/var/tmp/nginx/proxy_temp --http-scgi-temp-path=/var/tmp/nginx/scgi_temp --http-uwsgi-temp-path=/var/tmp/nginx/uwsgi_temp --http-log-path=/var/log/nginx-access.log --add-module=/usr/ports/www/nginx/work/nginx-accesskey-2.0.3 --add-module=/usr/ports/www/nginx/work/vkholodkov-nginx-eval-module-125fa2e --with-http_flv_module --with-http_gzip_static_module --with-http_image_filter_module --add-module=/usr/ports/www/nginx/work/nginx_http_push_module-0.692 --with-http_ssl_module --with-http_stub_status_module --with-http_sub_module --add-module=/usr/ports/www/nginx/work/nginx_upload_module-2.2.0 --add-module=/usr/ports/www/nginx/work/nginx_uploadprogress_module-0.8.2 --add-module=/usr/ports/www/nginx/work/ngx_http_upstream_keepalive-0.7 --with-pcre


--
 Think before you print.
Best regards, Alexey Bobok.



--
 Think before you print.
Best regards, Alexey Bobok.
_______________________________________________
nginx-ru mailing list
nginx-ru@xxxxxxxxx
http://mailman.nginx.org/mailman/listinfo/nginx-ru


 




Copyright © Lexa Software, 1996-2009.