Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/flaviogrossi/nginx-lua-upload-module
nginx upload module to handle multipart/form-data uploads of any size
https://github.com/flaviogrossi/nginx-lua-upload-module
lua nginx rfc-1867 upload
Last synced: 5 days ago
JSON representation
nginx upload module to handle multipart/form-data uploads of any size
- Host: GitHub
- URL: https://github.com/flaviogrossi/nginx-lua-upload-module
- Owner: flaviogrossi
- License: gpl-2.0
- Created: 2015-05-05T14:01:21.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2020-11-05T16:57:35.000Z (about 4 years ago)
- Last Synced: 2023-03-24T07:28:22.715Z (almost 2 years ago)
- Topics: lua, nginx, rfc-1867, upload
- Language: Lua
- Size: 29.3 KB
- Stars: 6
- Watchers: 2
- Forks: 6
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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](https://github.com/openresty/lua-nginx-module). This module also requires the following packages:* [lua-posix](https://github.com/luaposix/luaposix);
* [lua-lpeg](https://luarocks.org/modules/gvvaughan/lpeg).A sample nginx configuration is provided [here](https://github.com/flaviogrossi/nginx-lua-upload-module/blob/master/nginx.conf.sample).