Allows Flash file references to be attached to models. Requires something
like attachment_fu or paperclip on the server-side if you are using
remote service provider.
Example
For attachment_fu use this:
var ref:RxFileReference = new RxFileReference;
For paperclip use this:
var ref:RxFileReference = new RxFileReference("avatar")
This will match has_file_attachment :avatar
in your Ruby model.
If you pick a different name adjust the argument to constructor accordintly.
public var keyName:String
key name to use (default is "uploaded_data", which is what attachment_fu expects)
public var reference:FileReference
public function RxFileReference(keyName:String = "uploaded_data", file:FileReference = null)
Parameters
| keyName:String (default = "uploaded_data ") — keyname to use default "uploaded_data"
|
|
| file:FileReference (default = null )
|