appsmithorg / appsmith

Platform to build admin panels, internal tools, and dashboards. Integrates with 25+ databases and any API.
https://www.appsmith.com
Apache License 2.0
33.77k stars 3.63k forks source link

[Bug] Filepicker data format is out of sync #11258

Open riodeuno opened 2 years ago

riodeuno commented 2 years ago

Is there an existing issue for this?

Current Behavior

When we switch the fileDataType property of the Filepicker Widget, the files property entries do not update their data property values. This causes the fileDataType and the actual data format to go out of sync and the Filepicker loses data integrity.

Steps To Reproduce

  1. Add a FilePicker Widget
  2. Upload a file
  3. Check the Filepicker1.fileDataType and Filepicker1.files[0].data format, they will both be base64 by default
  4. Change the fileDataType from the property pane
  5. Filepicker1.fileDataType and Filepicker1.files[0].data format, are no longer is sync

Environment

Production

Version

Cloud

somangshu commented 2 years ago

@Tooluloope you will have to triage this. Please check what is the effort required

somangshu commented 2 years ago

9245 is related, And we have a solution proposed. Not sure if that is the the right way to go ahead