pqina / filepond

🌊 A flexible and fun JavaScript file upload library
https://pqina.nl/filepond
MIT License
15.05k stars 821 forks source link

[Bug] onprocessfiles does not triggered if I already had files loaded #992

Open nike1v opened 1 month ago

nike1v commented 1 month ago

Is there an existing issue for this?

Have you updated FilePond and its plugins?

Describe the bug

I'm trying to call a function when all files are uploaded to the server, the onprocessfiles looks what I need and it works as I want when there are no items loaded from files property. But if I'm instead editing (have files property populated with filepaths and local type), then when I'm adding new items, the onprocessfiles are not triggered.

Reproduction

Use jQuery version of the library and try to call onprocessfiles when there are already populated files property.

Environment

- Device: PC
- OS: Windows 11
- Browser: Chromium
rikschennink commented 1 month ago

Thanks for reporting, sounds like a bug indeed, will look into it as soon as possible.

rikschennink commented 3 weeks ago

In the mean time, could you subscribe to updatefiles and then check if all files are processed?

You can check the status property of the file, see: https://pqina.nl/filepond/docs/api/exports/#filestatus