queryStringLoader.as

Summary
queryStringLoader.as
Variables
Query String ParamatersUser defined variables passed to the application from the query string.
filesTooLargeMessageText
filesTooLargeTitleText
fileFilterFilters files user is able to select for upload, comprised of fileLabel and fileExtensions query string parameters.
Constants
ParametersContains the items to read and initialize from the query string.
Functions
preInitReads in and sets the query string parameters.

Variables

Query String Paramaters

User defined variables passed to the application from the query string.

tokenRequestURLURL that the token request is sent to.  The token allows for authentication on file upload.  Defaults to “”.  If left blank, no token will be requested.
flashCSSExternal compiled CSS file to load.  If blank will go with defaults.  Defaults to “”.
removeFileURLURL to request removal of file on the server.  Defaults to http://127.0.0.1:3000/no_model_demo/remove_files.
uploadURLURL that file is uploaded to.  Defaults to http://127.0.0.1:3000/no_model_demo/upload_file.
maximumUploadsMaximum number of uploads in one session.  Defaults to 10,000.
maximumTotalBytesMaximum total bytes that can be uploaded in a single session.  Defaults to 10000000000.
maximumFileBytesMaximum file size of each individual file.  Defaults to 10000000000.
maximumFilesOnServerMaximum number of files on server.  Defaults to 10000000000.
maximumBytesOnServerMaximum bytes on server.  Defaults to 10000000000.
mainPanelTitleTextUser definable text of the Title of the main panel.  Defaults to “File Management”.
uploadFilesButtonTextUser definable text of the Upload Files button.  Defaults to “Upload File(s)”.
removeFilesButtonTextUser definable text of the remove files button.  Defaults to “Remove File(s)”.
progressBarDefaultLabelTextUser definable default text of the progress bar.  Defaults to “Upload Progress”.
maximumFileSizeAlertUser definable text of maximum file size error message.  Defaults to “ is larger than the maximum file size.”.
maximumUploadsErrorMessageTextMaximum uploads exceeded error message.  Defaults to “You’ve reached the maximum number of uploads for this session.”.
maximumUploadsErrorTitleTextMaximum uploads exceeded error title.  Defaults to “Max Uploads Reached!”.
uploadFileErrorMessageTextText of upload file error alert.  Defaults to “Unable to upload file.”.
uploadFileErrorTitleTextText of upload file error alert title.  Defaults to “Error!”.
uploadRejectedErrorMessageTextText of upload rejected error message.  Defaults to “ was REJECTED by the server.  Check the file type or size.”.
uploadRejectedErrorTitleTextText of upload rejected title.  Defaults to “Error!”.
uploadIOErrorMessageTextText of IO Error message.  Defaults to “Upload failed: IO Error has occurred.”.
uploadIOErrorTitleTextText of title of IO Error Message.  Defaults to “Error!”.
maximumAllowedFilesErrorMessageTextMaximum number of files that are allowed to exist on the server exceeded error message text.  Defaults to “Maximum number of allowed files has been exceeded.”.
maximumAllowedFilesErrorTitleTextMaximum number of files that are allowed to exist on the server exceeded error title text.  Defaults to “Error!”.
maximumBytesOnServerErrorMessageTextMaximum number of bytes that are allowed to exist on the server exceeded error message text.  Defaults to “Maximum number of bytes allowed on server has been exceeded.”.
maximumBytesOnServerErrorTitleTextMaximum number of bytes that are allowed to exist on the server exceeded error title text.  Defaults to “Error!”.
applicationTokenA token that can be sent with the upload request to further identify the application.  Could be used to identify a model.  Defaults to “”.
fileNameHeaderThe default header of the file name column.  Defaults to “File Name”.
uploadProgressHeaderThe default header of the Upload Progress column.  Defaults to “Progress”.
finishedTextText that displays in the list when a file is finished.  Defaults to “Finished”.
queuedTextText that displays when a file is queueud.  Defaults to “Queued”.

filesTooLargeMessageText

public var filesTooLargeMessageText: String

filesTooLargeTitleText

public var filesTooLargeTitleText: String

fileFilter

private var fileFilter: FileFilter

Filters files user is able to select for upload, comprised of fileLabel and fileExtensions query string parameters.  Defaults to “Image Files” and “.jpg;.png;*.gif;*.bmp” respectively.

Constants

Parameters

Contains the items to read and initialize from the query string.

STANDARD_PARAMETERSParameters that require no special manipulation for assignment.
BOOLEAN_PARAMETERSParameters that are true or false values represented by strings.

Functions

preInit

private function preInit():void

Reads in and sets the query string parameters.  The paramaters that are read can be located in the constant STANDARD_PARAMETERS.  Reads in the files currently uploaded.  These files are passed in useing the values uploadedFileName<Number> and uploadedFileSize<Number> where number starts at 1 and increases with each successive file.  Finally loads the style.

See Also

STANDARD_PARAMETERS

public var filesTooLargeMessageText: String
public var filesTooLargeTitleText: String
private var fileFilter: FileFilter
Filters files user is able to select for upload, comprised of fileLabel and fileExtensions query string parameters.
private function preInit():void
Reads in and sets the query string parameters.
Parameters that require no special manipulation for assignment.