Class Iowa::FileData
In: src/Request.rb
Parent: Array

Class to encapsulate the data received from a file upload.

Methods

new   store   to_s  

Attributes

content_type  [RW] 
name  [RW] 

Public Class methods

Public Instance methods

Create a file with a path/name as in @name, and write the current data to it. Convenience method. After an Iowa app received an uploaded file and it checks/sets @name as appropriate, a single call to store() will write the file. If @name is blank or nil, the content will instead be written to an instance of Tempfile.

[Validate]