| Package | Top Level |
| Class | public class Uploader |
| Inheritance | Uploader YUIAdapter flash.display.Sprite |
| Property | Defined by | ||
|---|---|---|---|
| simultaneousUploadLimit : Number = 2
Determines how many files will be uploaded simultaneously
| Uploader | ||
| Method | Defined by | ||
|---|---|---|---|
|
Uploader(debugfield:TextField = null)
| Uploader | ||
|
browse(allowMultiple:Boolean = false, filterArray:Array = null):void
Triggers a prompt for the user to browse their file system to select
files to be uploaded.
| Uploader | ||
|
cancel(fileID:String = null):void
Cancels either an upload of the file corresponding to a given fileID, or in the absence of the specified fileID, all active files being uploaded.
| Uploader | ||
|
clearFileList():Boolean
Clears the set of files that had been selected for upload
| Uploader | ||
|
removeFile(fileID:String):Object
Removes the file from the set to be uploaded
| Uploader | ||
|
upload(fileID:String, url:String, method:String = "GET", vars:Object = null, fieldName:String = "Filedata"):void
Uploads a file corresponding to a specified ID to a specified path where a script handles writing to the server.
| Uploader | ||
|
uploadAll(url:String, method:String = "GET", vars:Object = null, fieldName:String = "Filedata"):void
Uploads all files to a specified path where a script handles writing to the server.
| Uploader | ||
| simultaneousUploadLimit | property |
public var simultaneousUploadLimit:Number = 2Determines how many files will be uploaded simultaneously
| Uploader | () | constructor |
public function Uploader(debugfield:TextField = null)Parameters
debugfield:TextField (default = null) |
| browse | () | method |
public function browse(allowMultiple:Boolean = false, filterArray:Array = null):voidTriggers a prompt for the user to browse their file system to select files to be uploaded.
ParametersallowMultiple:Boolean (default = false) — Whether to allow the user to select more than
one file
|
|
filterArray:Array (default = null) — An array of filter objects, each with
description, and extensions properties which
determine which files the user is allowed to select
|
| cancel | () | method |
public function cancel(fileID:String = null):voidCancels either an upload of the file corresponding to a given fileID, or in the absence of the specified fileID, all active files being uploaded.
ParametersfileID:String (default = null) — The ID of the file to be uploaded
|
| clearFileList | () | method |
public function clearFileList():BooleanClears the set of files that had been selected for upload
ReturnsBoolean |
| removeFile | () | method |
public function removeFile(fileID:String):ObjectRemoves the file from the set to be uploaded
ParametersfileID:String — The ID of the file to be removed
|
Object |
| upload | () | method |
public function upload(fileID:String, url:String, method:String = "GET", vars:Object = null, fieldName:String = "Filedata"):voidUploads a file corresponding to a specified ID to a specified path where a script handles writing to the server.
ParametersfileID:String — The ID of the file to be uploaded
|
|
url:String — The path to the serverside script
|
|
method:String (default = "GET") — The HTTP submission method. Possible values are "GET" and "POST"
|
|
vars:Object (default = null) — An object containing data to be sent along with the request
|
|
fieldName:String (default = "Filedata") — The field name that precedes the file data in the upload POST operation. The uploadDataFieldName value must be non-null and a non-empty String.
|
| uploadAll | () | method |
public function uploadAll(url:String, method:String = "GET", vars:Object = null, fieldName:String = "Filedata"):voidUploads all files to a specified path where a script handles writing to the server.
Parametersurl:String — The ID of the file to be uploaded
|
|
method:String (default = "GET") — The path to the serverside script
|
|
vars:Object (default = null) — The HTTP submission method. Possible values are "GET" and "POST"
|
|
fieldName:String (default = "Filedata") — An object containing data to be sent along with the request
|