Code Monkey home page Code Monkey logo

nginx-http-vkupload-module's Introduction

Nginx Module: nginx-http-vkupload-module

Description

Parses request body storing all files being uploaded to a directory specified by vkupload_file_path directive.

Directives

vkupload_pass

Syntax: vkupload_pass location
Default:
Context: location

Specifies location to pass request body to. File fields will be stripped and replaced by fields, containing necessary information to handle uploaded files.

vkupload_field

Syntax: vkupload_field name value
Default:
Context: location

Specifies a form field(s) to generate for each uploaded file in request body passed to backend.

vkupload_file_path

Syntax: vkupload_file_path directory [level1 [level2]] ...
Default:
Context: location

Specifies a directory to which output files will be saved to. The directory could be hashed.

vkupload_file_access

Syntax: vkupload_file_access mode
Default: user:rw
Context: location

Specifies access mode which will be used to create output files.

vkupload_multipart

Syntax: vkupload_multipart on | off
Default:
Context: location

Enables multipart uploads.

vkupload_multipart_field

Syntax: vkupload_multipart_field name
Default:
Context: location

Fields name with file content in multipart request.

vkupload_resumable

Syntax: vkupload_resumable on | off
Default:
Context: location

Enables resumable uploads. Protocol spec: http://www.grid.net.ru/nginx/resumable_uploads.en.html

vkupload_resumable_session_zone

Syntax: vkupload_resumable_session_zone name [size]
Default:
Context: location

Shared memory zone name and size for resumable states.

Variables

$vkupload_file_path

Path to uploaded file

$vkupload_file_md5

MD5 of uploaded file

$vkupload_file_size

Size of uploaded file

$vkupload_file_name

Name of uploaded file, get from "filename" from Content-Disposition header

$vkupload_file_field

Field of uploaded file, get from "field" from Content-Disposition header

nginx-http-vkupload-module's People

Contributors

morf avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

tdakkota

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.