405 Method Not Allowed
- I'm getting this error and my request url is null tho i've set the callback
- I've also tried @action="" but I got the same result
Request URL: http://localhost:8000/callback/null
Request Method: POST
Status Code: 405 Method Not Allowed
<vs-upload automatic :action="upload" fileName="file" @on-success="successUpload" />
export default {
methods:{
upload (file) {
this.$store.dispatch('some/callback', file)
},
successUpload() {
}
}
500 Internal Server Error
- Symfony\Component\Routing\Exception\RouteNotFoundException: Route [login] not defined.
Request URL: http://localhost:8000/api/upload
Request Method: POST
Status Code: 500 Internal Server Error
<vs-upload automatic action="/api/upload" fileName="file" @on-success="successUpload" />
export default {
methods:{
successUpload() {
}
}
Route [login] not definedmeans you need to add authorisation inapi/uploadapi/uploadis inside the middleware. csrf_token is present on the main blade. where do i put the authorization? I have also tried to put headers on vs-upload but no luck :(csrfandauthtoken is totally difrrent