http-uploadprogress #
Nginx Upload Progress Module
Source: upstream source
Directives
report_uploads #
syntax: report_uploads 1 arg; · context: http, server, location
It must be in a proxy_pass or fastcgi_pass location. report_uploads ++++++++++++++ :Syntax: report_uploads <zone_name> :Default: none :Context: location :Description: This directive allows a location to report the upload progress that is tracked by track_uploads for <zone_name>.
track_uploads #
syntax: track_uploads 2 args; · context: http, server, location
It must be in a proxy_pass or fastcgi_pass location. report_uploads ++++++++++++++ :Syntax: report_uploads <zone_name> :Default: none :Context: location :Description: This directive allows a location to report the upload progress that is tracked by track_uploads for <zone_name>.
upload_progress #
syntax: upload_progress 2 args; · context: http
Reserves a shared memory zone that tracks per-connection upload progress.
upload_progress_content_type #
syntax: upload_progress_content_type 1 arg (string); · context: http, server, location
Stores a single string value.
upload_progress_header #
syntax: upload_progress_header 1 arg (string); · context: http, server, location
Stores a single string value.
upload_progress_java_output #
syntax: upload_progress_java_output no args; · context: http, server, location
If you rely on this module serving the deprecated java output use: upload_progress_java_output in the progress probe location.
upload_progress_json_output #
syntax: upload_progress_json_output no args; · context: http, server, location
Formats the upload progress response as plain JSON.
upload_progress_jsonp_output #
syntax: upload_progress_jsonp_output no args; · context: http, server, location
Formats the upload progress response as JSONP with a callback wrapper.
upload_progress_jsonp_parameter #
syntax: upload_progress_jsonp_parameter 1 arg (string); · context: http, server, location
Stores a single string value.
upload_progress_template #
syntax: upload_progress_template 2 args; · context: http, server, location
Installs a custom response template for a given upload progress state.
Example
http {
upload_progress uploads 1m;
server {
location /upload {
track_uploads uploads 30s;
proxy_pass http://backend;
}
location ^~ /progress {
report_uploads uploads;
upload_progress_json_output;
}
}
}