This is an old revision of the document!
https://innostudio.de/fileuploader/
<div class="fileuploader-input">
or dragging files into itjquery.fileuploader.js
: f.init
: p
, language, merge optionsn.beforeRenderer(parentEl p, inputEl s);
Callback fired before rendering the fileuploader elements, by returning false, you will prevent the renderingf.redesign();
f.thumbnails.create();
create thumbnails listn.thumbnails.beforeShow(parentEl p, newInputEl on inputEl s);
Callback fired before adding the list element(n.thumbnails.box)
n.thumbnails._selectors.popup_open
, .start
, .retry
, .rotate
, .remove
if (n.files) { f.files.append(n.files); }
append files from options (see pre-load files)== Notes =
[{ name: 'file.txt', // file name size: 1024, // file size in bytes type: 'text/plain', // file MIME type file: 'uploads/file.txt', // file path local: '../uploads/file.txt', // file path in listInput (optional) data: { thumbnail: 'uploads/file_thumbnail.jpg', // item custom thumbnail; if false will disable the thumbnail (optional) readerCrossOrigin: 'anonymous', // fix image cross-origin issue (optional) readerForce: true, // prevent the browser cache of the image (optional) readerSkip: true, // skip file from reading by rendering a thumbnail (optional) popup: false, // remove the popup for this file (optional) listProps: {}, // custom key: value attributes in the fileuploader's list (optional) your_own_attribute: 'your own value' } }]