Class | plupload |
Type | Singleton |
// Encode entities console.log(plupload.xmlEncode("My string <>")); // Generate unique id console.log(plupload.guid());
Property | Defined By |
---|---|
DONE : Object
[static] File has been uploaded successfully
|
plupload |
FAILED : Object
[static] File has failed to be uploaded
|
plupload |
FILE_EXTENSION_ERROR : Object
[static] File extension error.
|
plupload |
FILE_SIZE_ERROR : Object
[static] File size error.
|
plupload |
GENERIC_ERROR : Object
[static] Generic error for example if an exception is thrown inside Silverlight.
|
plupload |
HTTP_ERROR : Object
[static] HTTP transport error.
|
plupload |
INIT_ERROR : Object
[static] Initialization error.
|
plupload |
IO_ERROR : Object
[static] Generic I/O error.
|
plupload |
mimeTypes : Object
[static] Mime type lookup table.
|
plupload |
QUEUED : Object
[static] File is queued for upload
|
plupload |
SECURITY_ERROR : Object
[static] Generic I/O error.
|
plupload |
STARTED : Object
[static] Upload process is running
|
plupload |
STOPPED : Object
[static] Inital state of the queue and also the state ones it's finished all it's uploads.
|
plupload |
UPLOADING : Object
[static] File is being uploaded
|
plupload |
Method | Defined By |
---|---|
addRuntime(name:String, obj:Object):void
[static] Adds a specific upload runtime like for example flash or gears.
|
plupload |
cleanName(s:String):String
[static] Cleans the specified name from national characters (diacritics).
|
plupload |
extend(target:Object, obj:Object..):Object
[static] Extends the specified object with another object.
|
plupload |
formatSize(size:Number):String
[static] Formats the specified number as a size string for example 1024 becomes 1 KB.
|
plupload |
getPos(node:Element, root:Element):object
[static] Returns the absolute x, y position of an Element.
|
plupload |
guid():String
[static] Generates an unique ID.
|
plupload |
parseSize(size:String/Number):Number
[static] Parses the specified size string into a byte value.
|
plupload |
toArray(obj:Object):Array
[static] Forces anything into an array.
|
plupload |
xmlEncode(s:String):String
[static] Encodes the specified string.
|
plupload |
public static DONE : Object
public static FAILED : Object
public static FILE_EXTENSION_ERROR : Object
public static FILE_SIZE_ERROR : Object
public static GENERIC_ERROR : Object
public static HTTP_ERROR : Object
public static INIT_ERROR : Object
public static IO_ERROR : Object
public static mimeTypes : Object
public static QUEUED : Object
public static SECURITY_ERROR : Object
public static STARTED : Object
public static STOPPED : Object
public static UPLOADING : Object
public static
function addRuntime(name:String, obj:Object):void
name:String | Runtime name for example flash. |
obj:Object | Object containing init/destroy method. |
public static
function cleanName(s:String):String
s:String | String to clean up. |
public static
function extend(target:Object, obj:Object..):Object
target:Object | Object to extend. |
obj:Object.. | Multiple objects to extend with. |
public static
function formatSize(size:Number):String
size:Number | Size to format as string. |
public static
function getPos(node:Element, root:Element):object
node:Element | HTML element or element id to get x, y position from. |
root:Element | Optional root element to stop calculations at. |
public static
function guid():String
public static
function parseSize(size:String/Number):Number
size:String/Number | String to parse or number to just pass through. |
public static
function toArray(obj:Object):Array
obj:Object | Object with length field. |
public static
function xmlEncode(s:String):String
s:String | String to encode. |