NaviServer - programmable web server

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

# ns_upload_stats(n) 4.99.8 naviserver "NaviServer Built-in Commands"

## Name

ns_upload_stats - Return realtime statistic about being uploaded file

## Table Of Contents

## Synopsis

- ns_upload_stats key

## 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 this statistics is 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 2048

## EXAMPLES

    Put some examples here to illustrate command usage.

## See Also

nsd

## Keywords

NaviServer, configuration, progress, upload