Skip to content
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

Uploaded file information stays in the form data dictionary even after a file is removed using the upload component's delete icon #60

Open
jwag59 opened this issue Jun 14, 2022 · 0 comments

Comments

@jwag59
Copy link

jwag59 commented Jun 14, 2022

When using an Upload component in a Modal form, if the user uses the small delete icon next to the uploaded file to remove the file from the uploaded file list, when the form is submitted the upload file information still exists in the form data passed to the on_submit function.

This is problematic for my use case as the user can either select a file from a SelectBox component or upload a new file using the Upload component. If both are specified it is difficult to decide which one should be used. And in the case they upload a file but then decide they don't want to use that file and delete it then the file information should also be erased from the form data dictionary, indicating no file is available as yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant