Module | Rack::Multipart
In: | lib/rack/multipart/uploaded_file.rb lib/rack/multipart/parser.rb lib/rack/multipart/generator.rb lib/rack/multipart.rb

A multipart form data parser, adapted from IOWA.

Usually, Rack::Request#POST takes care of calling this.

### Methods

build_multipart parse_multipart

### Classes and Modules

Class Rack::Multipart::Generator
Class Rack::Multipart::MultipartPartLimitError
Class Rack::Multipart::Parser
Class Rack::Multipart::UploadedFile

### Constants

EOL | = | "\r\n"
MULTIPART_BOUNDARY | = | "AaB03x"
MULTIPART | = | %r|\Amultipart/.*boundary=\"?([^\";,]+)\"?|ni
TOKEN | = | /[^\s()<>,;:\\"\/\[\]?=]+/
CONDISP | = | /Content-Disposition:\s*#{TOKEN}\s*/i
DISPPARM | = | /;\s*(#{TOKEN})=("(?:\\"|[^"])*"|#{TOKEN})/
RFC2183 | = | /^#{CONDISP}(#{DISPPARM})+$/i
BROKEN_QUOTED | = | /^#{CONDISP}.*;\sfilename="(.*?)"(?:\s*$|\s*;\s*#{TOKEN}=)/i
BROKEN_UNQUOTED | = | /^#{CONDISP}.*;\sfilename=(#{TOKEN})/i
MULTIPART_CONTENT_TYPE | = | /Content-Type: (.*)#{EOL}/ni
MULTIPART_CONTENT_DISPOSITION | = | /Content-Disposition:.*\s+name="?([^\";]*)"?/ni
MULTIPART_CONTENT_ID | = | /Content-ID:\s*([^#{EOL}]*)/ni

### Public Class methods

build_multipart(params, first = true)
parse_multipart(env)

[Validate]