What's your idea?
I'd like to enable my panel users to upload an updated CSV file that replaces the current content right from a CSV field. They shouldn't have need to go into the panel page for the file model to look for the "Replace" action or deal with "A file with the name foobar.csv already exists" errors.
This behavior should probably be opt-in based on some field options in the blueprints.
These would be the states and offered buttons on the field:
- Empty state:
- "Upload": Opens the usual file picker and then upload dialog flow
"Select": Not sure if that one should be shown in this configuration. Picking an existing uploaded File could lead to accidents when it's replaced from here later.
- Has File state:
- "Replace": Opens the same flow as "Replace" from the page for the file model
- "Remove": Removes the file (maybe should delete the file model, too?)
What's your idea?
I'd like to enable my panel users to upload an updated CSV file that replaces the current content right from a CSV field. They shouldn't have need to go into the panel page for the file model to look for the "Replace" action or deal with "A file with the name foobar.csv already exists" errors.
This behavior should probably be opt-in based on some field options in the blueprints.
These would be the states and offered buttons on the field:
"Select": Not sure if that one should be shown in this configuration. Picking an existing uploaded File could lead to accidents when it's replaced from here later.