Class MIME::MultipartMedia::FormData
In: lib/mime/composite_media_type.rb
Parent: MultipartMedia

The FormData subtype expresses values for HTML form data submissions.


RFCs consulted during implementation:

  • RFC-1867 Form-based File Upload in HTML
  • RFC-2388 Returning Values from Forms: multipart/form-data

Methods

add_entity   new  

Public Class methods

Returns a MultipartMedia::FormData object with a content type of multipart/form-data.

Public Instance methods

Add the MediaType object, entity, to the FormData object. name is typically an HTML input tag variable name. If the input tag is of type file, then filename must be specified to indicate a file upload.

[Validate]