How to use the filepond.setOptions function in filepond

To help you get started, we’ve selected a few filepond examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github pqina / filepond / types / tests.ts View on Github external
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,

filepond

FilePond, Where files go to stretch their bits.

MIT
Latest version published 18 days ago

Package Health Score

85 / 100
Full package analysis