class WWW::Mechanize::Form::FileUpload
See the example in EXAMPLES[link://files/EXAMPLES_txt.html]
of the file.
to upload and WWW::FileUpload#mime_type= to the appropriate mime type
class, set WWW::FileUpload#file_data= to the data of the file you want
This class represents a file upload field found in a form. To use this
def initialize(name, file_name)
def initialize(name, file_name) @file_name = Mechanize.html_unescape(file_name) @file_data = nil super(name, @file_data) end