-
-
Notifications
You must be signed in to change notification settings - Fork 826
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
restoring state after page submit #13
Comments
It's best to use the |
Thanks, this is really helpful and it's working. |
@kmanley There's no way to disabled file size ( you could hide it with CSS ). But file size should be returned by the server restore method. See answer below. |
restor mutiple files failed ! Only echo the last file's name. |
Hi @drtf, can you share your options object? |
@drtf You need to set the files as a property of the options object, FilePond.create({
files: files,
server: {
load: 'xxxx/xxxx/load'
}
}); |
@rikschennink And, is there a possibility to inject an already uploaded file wihout re-create the instance everytime? Thanks. |
I'm not sure I follow @NichAga |
@rikschennink I have a modal, where there is my filepond instance. The problem is that I use the same modal for multiple insert/modify of multiple elements (for example X restaurants). Everytime I open the modal, I do a "removeFiles()" to remove all the files from the filepond instance, but I seems to not find a solution for insert some files of this X resturant that I previously uploaded. (When I open the modal, I do an ajax request to get the info of this resturant, and I also have all ther server ids of the images, of course) |
I think setting the |
The files property of the filepond instance? |
Yes, it should update the file list with the newly supplied files |
Thanks @rikschennink , gonna try it this evening. EDIT: it works! Thanks! |
Hi @rikschennink, what happened to the Setting initial files section? Thanks! |
You can now find it here: https://pqina.nl/filepond/docs/api/instance/properties/#files |
Thanks!! |
I have a page with the filepond control and some other controls.
Suppose the user uploads a couple files, and the filepond control shows them in green.
Then the user submits the page and there is a validation error, so all the controls are shown again.
My server knows the current state of the uploads; how can I update the filepond UI on the client to show the files that were uploaded previously?
The text was updated successfully, but these errors were encountered: