multipart_form(action = nil, enctype = "multipart/form-data")
Instance Public methods
Generate a Form element with multipart encoding as a String.
Multipart encoding is used for forms that include file uploads.
action
is the action to perform. enctype
is the
encoding type, which defaults to âmultipart/form-dataâ.
Alternatively, the attributes can be specified as a hash.
1 2 3 4 5 | multipart_form{ "string" } # <FORM METHOD="post" ENCTYPE="multipart/form-data">string</FORM> multipart_form( "url" ) { "string" } # <FORM METHOD="post" ACTION="url" ENCTYPE="multipart/form-data">string</FORM> |
Please login to continue.