0👍
The way to do this in Vue is as follows:
- Make a input field and attach the event “v-on:input” with the function that will be called when the input is selected.
- Don’t forget to add “webkitdirectory mozdirectory” for firefox and chrome browsers.
- Inside the function fetch the input query via “document.querySelectorAll(‘input’);“. The information of files will be inside files object.
- [Vuejs]-How to set dynamic styles in Vue.js component from Vuex store
- [Vuejs]-Laravel vue with two different layout
Source:stackexchange.com