Skip to content

Maintenance Ruby 3.3 gets fixes, but no new features. Switch to Ruby 4.0 →

instance method

CGI::QueryExtension#read_multipart

read_multipart(boundary, content_length)

Parses multipart form elements according to

Example
http://www.w3.org/TR/html401/interact/forms.html#h-17.13.4.2

Returns a hash of multipart form parameters with bodies of type StringIO or Tempfile depending on whether the multipart form element exceeds 10 KB

Example
params[name => body]
See also #read_from_cmdline #raw_cookie2 also in 3.4 · 3.2 · 3.1 · 3.0