score:0

Accepted answer

with react you need to use the server prop. the server prop is either a url or a configuration object, not a function.

<filepond 
  files={this.state.newfiles}
  allowmultiple={true}  
  server={{
    process: (fieldname, file, metadata, load, error, progress, abort, transfer, options) => {
        // your processing code here
    }
  }}
/>

for more information view this example processing function: https://pqina.nl/filepond/docs/patterns/api/server/#advanced

score:0

as stated in github issue filepond.setoptions not worked

with react the filepond object is a component there is no global filepond object available at the moment. you can pass the server properties to the component as a prop.

i believe you need to do the same, instead of calling setoptions function, you can pass these options as properties to filepond component

if you really need to have access to setoptions, i have forked example from the react-filepond and added useefect where you can see how to access setoptions function: accees setoptions by ref


Related Query

More Query from same tag