Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
if (!(a.file && b.file)) return 0;
// Move to right location in list
if (a.fileSize < b.fileSize) {
return -1;
}
else if (b.fileSize > a.fileSize) {
return 1;
}
return 0;
}
FilePond.setOptions({
allowDrop: false,
allowReplace: false,
instantUpload: false,
server: {
url: 'http://192.168.33.10',
process: './process.php',
revert: './revert.php',
restore: './restore.php?id=',
fetch: './fetch.php?data='
}
});
FilePond.setOptions({
server: {
url: 'http://192.168.0.100',
timeout: 7000,