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
Unable to change the default remove behaviour #47
Comments
I’ll test it this afternoon, it’s set up to remove temporary files, so maybe I missed a use-case 🙃 |
@aitorllj93 There's currently no The reasoning behind this is that destructive actions like that should be done after careful consideration ( and would require an undo option or serious confirm popup ). FilePond keeps a list of current files, then, when the parent form is submitted you can determine the differences after the user made changes to the files list and remove the necessary files from the server. I'm considering adding this as an option but am wondering if the solution above would work for your use-case? |
Hi @rikschennink, sorry, was my fault, I had already handled the remove event but didn't saw it. The problem now is, this event gets called also during revert process so I'm unable to know if that file was already deleted by the revert handler |
@aitorllj93 Yes that's also a way handle it. I think a property to indicate the origins of the file would be a nice addition, something like: |
@aitorllj93 Just added the It's available in version export const FileOrigin = {
INPUT:1,
LIMBO:2,
LOCAL:3
}; |
Hi,
I have troubles handing de DELETE file method
The revert handler works well when upload is done with the component, but when I load
the files preloaded with this format:
I'm unable to change the remove file default behaviour
Thanks for your time
The text was updated successfully, but these errors were encountered: