add(preview);
// The template used by jquery.fileupload-ui.js to show the files
// scheduled for upload (i.e. the added files).
// Optional
FileUploadTemplate uploadTemplate = new FileUploadTemplate("uploadTemplate");
add(uploadTemplate);
// The template used by jquery.fileupload-ui.js to show the uploaded files
// Optional
FileDownloadTemplate downloadTemplate = new FileDownloadTemplate("downloadTemplate");