Server IP : 173.249.157.85 / Your IP : 3.129.12.100 Web Server : Apache System : Linux server.frogzhost.com 3.10.0-1127.19.1.el7.x86_64 #1 SMP Tue Aug 25 17:23:54 UTC 2020 x86_64 User : econtech ( 1005) PHP Version : 7.3.33 Disable Function : NONE MySQL : OFF | cURL : OFF | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/econtech/public_html/public/back/assets/js/demo10/pages/crud/forms/widgets/
Current File : /home/econtech/public_html/public/back/assets/js/demo10/pages/crud/forms/widgets/dropzone.js
"use strict";
// Class definition
var KTDropzoneDemo = function () {
// Private functions
var demos = function () {
// single file upload
Dropzone.options.kDropzoneOne = {
paramName: "file", // The name that will be used to transfer the file
maxFiles: 1,
maxFilesize: 5, // MB
addRemoveLinks: true,
accept: function(file, done) {
if (file.name == "justinbieber.jpg") {
done("Naha, you don't.");
} else {
done();
}
}
};
// multiple file upload
Dropzone.options.kDropzoneTwo = {
paramName: "file", // The name that will be used to transfer the file
maxFiles: 10,
maxFilesize: 10, // MB
addRemoveLinks: true,
accept: function(file, done) {
if (file.name == "justinbieber.jpg") {
done("Naha, you don't.");
} else {
done();
}
}
};
// file type validation
Dropzone.options.kDropzoneThree = {
paramName: "file", // The name that will be used to transfer the file
maxFiles: 10,
maxFilesize: 10, // MB
addRemoveLinks: true,
acceptedFiles: "image/*,application/pdf,.psd",
accept: function(file, done) {
if (file.name == "justinbieber.jpg") {
done("Naha, you don't.");
} else {
done();
}
}
};
}
return {
// public functions
init: function() {
demos();
}
};
}();
KTDropzoneDemo.init();