0👍
base64
does not contain the file name. However, the only way to know the extension is by the file name. So you have to find an other way to get the file name. If you use an input[type=file]
, you can get the name by referring this answer.
- [Vuejs]-Cannot trigger function when clicking logo
- [Vuejs]-How to compile multiple mix.webpackConfig with multple folders in Laravel VueJs
Source:stackexchange.com