ctf0 / Laravel-Media-Manager

A "Vuejs & Laravel" Media Manager With Tons of Features
MIT License
829 stars 179 forks source link

How to get a list of multi selected files? #40

Closed 4KDA closed 6 years ago

4KDA commented 6 years ago

What version of Laravel are you using? (nothing lower than v5.4).

5.5

is it an issue related to installation or usage ?

No

what is the error you are getting ?

No error.

If you select multiple files, the link will only link to the last one, but you need to get links to all the files. How?

ctf0 commented 6 years ago

ah, actually no we dont have this option yet, as i thought that mostly ppl will need a link for individual not multi, still can u tell me what would be the case for such feature ?

4KDA commented 6 years ago

we want to make a gallery in which you can leave a description of each picture, so the option of selecting a folder is not suitable, and choosing one file is long, because in the gallery can be a large number of pictures.

ctf0 commented 6 years ago

okay, i think i can add a new button that shows up on multi select and clicking on it will copy all the selected items links to the clipboard, is that what u r after ?

4KDA commented 6 years ago

Yeah, that's what you need. Or simply correct the functionality of the "Bulk select" button, without adding new buttons, so that there is no confusion in similar buttons.

4KDA commented 6 years ago

By the way (does not concern the current issue), "vue-awesome" has been updated to version 3.0 which does not have some icons used in your solution, which creates errors. Add a note to the description that you must install vue-awesome version 2.3.5 to avoid build errors.

ctf0 commented 6 years ago

Or simply correct the functionality of the "Bulk select" button, without adding new buttons, so that there is no confusion in similar buttons.

am not sure what u have in mind

4KDA commented 6 years ago

Now, by clicking on the "bulk select" button, you can select many files to work with them inside the manager (move, delete), but it returns to the buffer only the last element link. Can I do so that in this case I return a list of all the selected ones, without adding additional buttons?

image

ctf0 commented 6 years ago

but it returns to the buffer only the last element link

u mean the sidebar ? if yes, then i can add a little icon next to the public url to allow copying all the selected files links

if u mean that i auto-copy links to clipboard as you select new items, then no i prefer not doing so as this will ruin the user experience & will be an anti-pattern.

btw thanx for the vue-awesome headsup, i've updated the rdme

4KDA commented 6 years ago

No. I mean the meaning that I can output to the input through vue. (as in your example Use The Manager From A Modal)

Ok. You can make the "confirm select files" button, by click on which the value of clipboard will be updated to the links of the selected files (if one, then one link, if several, then all)?

ctf0 commented 6 years ago

oh okay, i'll think of something for that later

4KDA commented 6 years ago

Thank, we will wait)

ctf0 commented 6 years ago

added, recheck wiki

4KDA commented 6 years ago

Great! That's exactly what you need. In Pull Request offered a small but important addition.