orchidsoftware / orchidsoftware/platform
Upload fields are not repopulated in Listeners.
Open
@tabuna is already working on this.
Since Apr 7, 2023.
Errors
- Dominant language
- PHP
- Stars
- 4.8k
- Forks
- 663
- Avg merge
- 1d 9h
- Merged PRs (30d)
- 7
Description
Describe the bug
I have a Listener Layout with an Upload field in it, when one of the other fields in the Listener gets changed any previously uploaded file disappears from the form.
To Reproduce
Steps to reproduce the behavior:
- Create a Screen with a Listener as described on https://orchid.software/en/docs/listener/
- Add an Upload field to the Listener.
- Add the upload field to the $targets or $extraVars property in the Listener.
- In the dashboard, first select a file for the Upload.
- Change any other field in the Screen
- Upload field is now empty.
Expected behavior
Selected file should stay selected.
I have checked the /async/ post triggered by the Listener, this does not contain a value for the Upload field.
Desktop (please complete the following information):
- OS: MacOS Venture 13.3
- Browser: Chrome Version
- Version: 111.0.5563.146
Server (please complete the following information):
- Platform Version: Tested on Orchid 13.8.0 and 13.9.4
- Laravel Version: 9.7
- PHP Version: 8.1.13
- Database: MariaDB
- Database Version: unknown
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.