adds files to the uploader using browser fileApi
name | string|object | file name and (optionally) its extension or a file object |
size | number | file size |
type | string | file extension |
$$("uploader_1").addFile("my_picture", 214, "jpg");
If you pass file name with extension, like "my_picture.jpg", uploader will automatically define its extension and store it as file type.
If you specify only the file title, like "my_picture", type becomes an obligatory parameter.
It is also possible to pass an object with file properties into the method, as in:
$$("uploader_1").addFile({name:"my_picture", size:100, file:File});
where File is an instance of the File object.
Back to top