Skip to content

flaviogrossi/nginx-lua-upload-module

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nginx-lua-upload-module

Module for the nginx web server to handle multipart/form-data uploads (RFC 1867) with files of any size.

This module processes the incoming upload request and stores all the file in a configurable directory on the filesystem, without storing the (possibly big) data files in memory. The request is then modified to contain the on-disk path to the uploaded files and then passed to the location specified in the backend_url directive.

The files persist on the filesystem until the backend cleans them up or automatically deleted in case of a backend error. The returned HTTP codes which are considered to be an error are specified in the upload_cleanup directive.

Installation

To use this module you will need nginx compiled with support for lua-nginx-module. This module also requires the following packages:

A sample nginx configuration is provided here.

About

nginx upload module to handle multipart/form-data uploads of any size

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages