Methods

Class Index [+]

Quicksearch

Mechanize::Form::FileUpload

This class represents a file upload field found in a form. To use this class, set FileUpload#file_data= to the data of the file you want to upload and FileUpload#mime_type= to the appropriate mime type of the file. See the example in EXAMPLES

Attributes

file_name[RW]
mime_type[RW]

Public Class Methods

new(node, file_name) click to toggle source
    # File lib/mechanize/form/file_upload.rb, line 15
15:         def initialize node, file_name
16:           @file_name = Util.html_unescape(file_name)
17:           @file_data = nil
18:           @node      = node
19:           super(node, @file_data)
20:         end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.