Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

upload is not working #6

Closed
biloo-dev opened this issue Jan 9, 2019 · 1 comment
Closed

upload is not working #6

biloo-dev opened this issue Jan 9, 2019 · 1 comment

Comments

@biloo-dev
Copy link

biloo-dev commented Jan 9, 2019

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 :

fff

the response ;
responce

the Console :
dddddd

i want to get responseText and Pass it to preview-img put i can't please help me Thanks

@TerryZ
Copy link
Owner

TerryZ commented Jan 9, 2019

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
}

@TerryZ TerryZ closed this as completed Jan 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants