Packageefnx.net
Classpublic class Uploader
InheritanceUploader Inheritance flash.net.URLLoader

Takes a filename, file, and variables object as input and return ByteArray post data suitable for an URLRequest as output.

See also

http://marstonstudio.com/?p=36
http://www.w3.org/TR/html4/interact/forms.html
http://www.jooce.com/blog/?p=143
http://www.jooce.com/blog/wp%2Dcontent/uploads/2007/06/uploadFile.txt
http://blog.je2050.de/2006/05/01/save-bytearray-to-file-with-php/
http://creativecommons.org/licenses/by-nc-sa/3.0/


Public Properties
 PropertyDefined by
  file : ByteArray
The file itself encoded in a ByteArray.
Uploader
  filename : String = ""
Filename to be sent to the server.
Uploader
  testing : Boolean = false
[static]
Uploader
  url : String = ""
The destination url.
Uploader
  variables : Object
Variables to be sent to the server.
Uploader
Public Methods
 MethodDefined by
  
Uploader
  
getPostData():ByteArray
Create post data to send in a UrlRequest
Uploader
  
upload():void
Uploads the file to the server.
Uploader
Property detail
fileproperty
public var file:ByteArray

The file itself encoded in a ByteArray.

filenameproperty 
public var filename:String = ""

Filename to be sent to the server.

testingproperty 
public static var testing:Boolean = false
urlproperty 
public var url:String = ""

The destination url.

variablesproperty 
public var variables:Object

Variables to be sent to the server.

Constructor detail
Uploader()constructor
public function Uploader()

Method detail
getPostData()method
public function getPostData():ByteArray

Create post data to send in a UrlRequest

Returns
ByteArray
upload()method 
public function upload():void

Uploads the file to the server.