Loading files without transferring file contents
See original GitHub issueHi there,
I’m using FilePond to upload a file within in an interface for a data object. The user can then go back to edit that data object, where I would like to show them the currently uploaded file and give them the option to delete that one and upload another.
FilePond does this very well, as I can add the previously uploaded file data to the files
array and use the load part of the server API to show the file’s name and size.
This is great, except it seems to require that I return the file contents in the server load request, so it appears that each time the user visits the page of a data object FilePond will download the file, which isn’t necessary.
I might be missing something obvious, but is there a way to simply add the file details (e.g. name and size) to the files
array instead of performing a request for the file?
Thanks!
Issue Analytics
- State:
- Created 5 years ago
- Comments:26
Will close the issue as the core feature has been added.
I’ve added the
load
boolean to the roadmap.Went with oremovefile and implemented the functionality i need in the event handler. Thank you for your time.