dragdrop Enable or disabled drag and drop selected files
When enabling the drag and drop event multiple file selection is enabled. That is, you can not limit the amount of uploaded files in your upload using drag and drop.
// get
$(":file").filestyle('dragdrop');
// set
$(":file").filestyle('dragdrop', false);
clear Clear selected files
// get
$(":file").filestyle('clear');
destroy Destroy a filestyle completely
// get
$(":file").filestyle('destroy');
disabled Disabled a filestyle
// get
$(":file").filestyle('disabled');
// set
$(":file").filestyle('disabled', true);
input Set or get the value of the input option
// get
$(":file").filestyle('input');
// set
$(":file").filestyle('input', false);
htmlIcon Set or get the value of the icon option
// get
$(":file").filestyle('htmlIcon');
// set
$(":file").filestyle('htmlIcon', '<span class="oi oi-random"></span>');
text Set or get the text of the button
// get
$(":file").filestyle('text');
// set
$(":file").filestyle('text', 'Loading...');
btnClass Set or get the class of the button
// get
$(":file").filestyle('btnClass');
// set
$(":file").filestyle('btnClass', 'btn-danger'};
size Set or get the class of the input text
// get
$(:file").filestyle('size');
// set
$(:file").filestyle('size', 'lg');
badge Set or get boolean
// get
$(":file").filestyle('badge');
// set
$(":file").filestyle('badge', true);
badgeName Set or get the class of the badge count
// get
$(":file").filestyle('badgeName');
// set
$(":file").filestyle('badgeName', 'badge-danger');
buttonBefore Set or get button position
// get
$(":file").filestyle('buttonBefore');
// set
$(":file").filestyle('buttonBefore', true);
placeholder Set or get placeholder text
// get
$(":file").filestyle('placeholder');
// set
$(":file").filestyle('placeholder', 'My file text');