As a novice web developer, I embarked on my first project using Vue.
In this project, I created a form for file uploads in Vue 2 and Laravel.
If you want to take a look at the full code:
- View: https://pastebin.com/QFrBfF74
- Data table user file: https://pastebin.com/sGQH71XZ
The overall functionality works well, but I have run into a small problem with reloading the data-table-user-files after uploading files.
Here is the code snippet for the modal containing the file uploader:
<!-- Modal code snippet goes here -->
I need an action to refresh the data-table-user-files component after the message "Success File added successfully!" How can I achieve this reload of the files list?
I've attempted to handle this issue through the following function:
// Function definition for handling file list retrieval
However, despite my efforts, it seems like something isn't quite right. Can someone provide me with guidance on how to fix this issue? Your help would be greatly appreciated.