Hello there, I am looking to upload a file from a Vue.js app to the local public directory of Laravel and only store the unique name in MySQL upon form submission. However, I am unsure how to achieve this using JavaScript.
// Template Tag
<input type="file" @change="uploadFile">
// Methods on Vue.js App
methods: {
uploadFile() {
// Logic to upload the file to the local public disk and only store the unique name in MySQL
}
}