How do I upload image in vuejs?

I think in your case you are looking for a solution like this example: uploading a image and previewing it before submission <template> <div> <img src:”previewImage” class=”uploading-image” /> <input type=”file” accept=”image/jpeg” @change=uploadImage> </div> </template> <script> export default { name:’imageUpload’, data(){ return{ previewImage:null } }, methods:{ uploadImage(e){ const image = e.target.files[0]; const reader = new FileReader(); … Read more

Incompatible units: ‘rem’ and ‘px’ – Bootstrap 4 and Laravel Mix

Solved remove the bootstrap entry from package.json and replace it with “bootstrap”: “4.0.0-alpha.6”, in resources/assets/sass/app.scss, comment out the import of variables. change the path of bootstrap to @import “node_modules/bootstrap/scss/bootstrap.scss”; in resources/assets/js/bootstrap.js, look for require(‘bootsrap-sass’); and change it to require(‘bootstrap’); Link!

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)