NaviServer - programmable web server
4.99  5.0

[ Main Table Of Contents | Table Of Contents | Keyword Index ]

ns_upload_stats(n) 4.99.30 naviserver "NaviServer Built-in Commands"

Name

ns_upload_stats - Return real-time statistic about being uploaded file

Table Of Contents

Synopsis

Description

This command is useful in case of uploading big files and giving users some progress statistics about the process. It works by creating special counter for the uploaded url and keeps updating it while the file is being uploaded. Once file is uploaded completely these statistics are removed from the local cache.

COMMANDS

ns_upload_stats key

key The key is either the value provided via the query parameter "X-Progress-ID" (if provided) or the url with the query parameters. The convention with the query parameter "X-Progress-ID" is supported by nginx, lighttpd and by apache (mod_passenger).

CONFIGURATION

ns_section ns/parameters { ns_param progressminsize 2kB }

EXAMPLES

 Put some examples here to illustrate command usage.

See Also

nsd

Keywords

NaviServer, configuration, progress, server built-in, upload