silverstripe / silverstripe-asset-admin

Silverstripe assets gallery for asset management
BSD 3-Clause "New" or "Revised" License
20 stars 79 forks source link

Select multiple in assets modal #1247

Open lerni opened 2 years ago

lerni commented 2 years ago

UploadField let you "Choose existing" which opens assets pop-up alike. There you just can select/check one by one but cannot drag-up an area to select multiple files opposed to real assets admin. Not being able to select multiple intuitively feels UX-wise pretty clunky.

emteknetnz commented 2 years ago

UploadField would have a has_one field database field though? Seems like we specifically do not want to be able to select multiple in this context?

lerni commented 2 years ago

Why do you assume it has to be a has_one relation? Reported issue occurred in a many_many context but I guess it should be the same with has_many. Think of a Gallery i.g. The desired behavior is demonstrated in the gif-animation but not available in the modal. In this context you have to click on each item to "check" multiple dragmultiselect .

emteknetnz commented 2 years ago

Apologies, bad assumption on my part

UploadField

 * Represents a file upload field with ReactJS based frontend.
 *
 * Allows writing to a parent record with the following relation types:
 *   - has_one
 *   - has_many
 *   - many_many