You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
required to response the image full path in server side, and the full data format like as follow:
{"success": true,//required field"error": null,//when file upload fail, this field will set the fail reason"url": "https://xx/someimg.jpg"//a full path of image to show in thumbnail}
how i can resive the data from response controller
this is my code :
<v-uploader @done="uploadDone" :preview-width="400" upload-file-url="api/images" delete-file-urll="api/images" language='en' :preview-height="300" preview-img="/img/avatar.png"> </v-uploader>
<script> export default { methods: { uploadDone(files){ if(files && Array.isArray(files) && files.length){ console.log(files); } }, } } </script>
code in My Controller :
the response ;
the Console :
i want to get responseText and Pass it to preview-img put i can't please help me Thanks
The text was updated successfully, but these errors were encountered: