atk4 / filestore

Implements integration between ATK UI and FlySystem
https://agiletoolkit.org/
MIT License
9 stars 8 forks source link

Multiple file upload #11

Open mkrecek234 opened 4 years ago

mkrecek234 commented 4 years ago

Multiple file uploads would be appreciated (with tokens stored in a single comma-separated text file which is shown similar to a multi-select dropdown where individual files can be deleted again, and each file can be downloaded)

DarkSide666 commented 4 years ago

See https://github.com/atk4/ui/blob/develop/src/FormField/Upload.php. This one supports multiple file upload.

mkrecek234 commented 4 years ago

It says "CURRENTLY NOT SUPPORTED." and the line handling it is commented out. Any chance someone is integrating this also into atk4-filestore?

DarkSide666 commented 4 years ago

Oh, right :(

mkrecek234 commented 4 years ago

This would be the right element for a multiple file upload: https://jsfiddle.net/lubber/m9srqbco/5/ The standard dropdown without values and with a removed drop-down icon. However we would nee to add the "upload" icon to the right to add further uploads. And connect the "X delete" action to also trigger the onDelete. Furthermore a click on a filename should call an onDownload to send the file. Anyone any hint to get this implemented?