orchidsoftware / orchidsoftware/platform

Upload fields are not repopulated in Listeners.

Open
#2,578 3 comments 0 reactions 1 assignee View on GitHub

@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:

  1. Create a Screen with a Listener as described on https://orchid.software/en/docs/listener/
  2. Add an Upload field to the Listener.
  3. Add the upload field to the $targets or $extraVars property in the Listener.
  4. In the dashboard, first select a file for the Upload.
  5. Change any other field in the Screen
  6. 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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.