Documentation

addFile

adds files to the uploader using browser fileApi

void addFile(string name,number size, [string type ] );

Parameters

namestringfile name and (optionally) its extension
sizenumberfile size
type stringfile extension

Example

$$("uploader_1").addFile("my_picture," 214, "jpg");

Details

If you pass file name as with tis extension, like "my_picture.jpg", uploader will automatically define its extension and store it as file type.

If you specify only file title "my_pictire", type becomes an obligatory parameter.

Back to top