Skip to content

A module for nginx web server for handling file uploads using multipart/form-data encoding (RFC 1867).

License

Notifications You must be signed in to change notification settings

cmdrclueless/nginx-upload-module

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nginx-upload-module

This is a fork of the 2.2 branch of the nginx-upload-module that allows for:

  • Configurable support for PUT and PATCH HTTP methods
  • Passing GET and OPTIONS requests transparently on to the upload_pass handler

Versioning

Current Version: 2.2.1+veracross.1

Currently this fork is versioned with a +veracross build suffix. This follows the build metadata portion of Semantic Versioning specification.

Documentation

The following documentation covers the features this fork adds. The original documentation should be used for all other functionality:

upload_pass_other_methods

This flag (on/off) configures the upload module to pass any requests that are not POST, PUT or PATCH on to the upload_pass location without processing them at all.

The nginx-upload-module normally responds to OPTIONS requests with a hard-coded 200 OK response, which does not allow applications to properly handle cross-domain OPTIONS requests.

With this option turned on, your application code will be invoked for OPTIONS requests, and all other methods such as GET, DELETE and HEAD.

location /files {
	upload_pass @my_handler;
	upload_pass_other_methods on;
}

upload_allow_methods_put_patch

This flag (on/off) configures the upload module to allow file upload handling for the HTTP PUT and PATCH methods.

The nginx-upload-module normally rejects all requests that do not use POST.

location /files {
	upload_pass @my_handler;
	upload_allow_methods_put_patch on;
}

Changelog

The Changelog is maintained with keep a record of all features and bug fixes.

Nginx 1.3 and 1.4 Support

This Version has been compiled successfully on Nginx 1.4.2. No attempt has been made to compile or test this version on any previous version of Nginx.

See https://github.com/vkholodkov/nginx-upload-module/issues/41#issuecomment-15692917 for the original author’s position on Nginx 1.3.9+ compatibility.

Credits

The nginx-upload-module was written by Valery Kholodkov (http://www.nginxguts.com/).

About

A module for nginx web server for handling file uploads using multipart/form-data encoding (RFC 1867).

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • C 98.9%
  • Other 1.1%