[Vuejs]-How to upload an image to folder src/assets in vuejs

0👍

You can’t. the thing about SPA is that your code runs on the browser. So you need server to do something like that.

The solution is just send your file to your server and let them handle the upload

0👍

As I know you cannot upload something dynamically for src/assets folder. because it uses to save assets for development. you have to create some folder or if you using firebase like service then you want to add firebase storage like service as well. because src/assets folder is rendering when building the vue application. so after building vue app there are no more src/assets folder.

Leave a comment