Method: Spider::UploadedFile#initialize

Defined in:
lib/spiderfw/http/http.rb

#initialize(filename, content_type) ⇒ UploadedFile

Returns a new instance of UploadedFile.



317
318
319
320
321
322
# File 'lib/spiderfw/http/http.rb', line 317

def initialize(filename, content_type)
    @filename = filename
    @content_type = content_type
    super('uploaded', Spider.paths[:tmp])
    
end