//Upload using formdata No serialization required qs.stringify(params)
export function uploadImg(params) {
return service({
url: 'motionGraph',
method: 'post',
headers:{'Content-type': 'multipart/form-data'},
data: params,
})
}
Similar Posts:
- CSRF verification failed. Request aborted [How to Solve]
- Files Upload Error: err_cert_common_name_invalid [How to Solve]
- [Solved] JS Ajax uploads an error “uncaught type error: illegal invocation”
- The front-end XMLHttpRequest object sets an error in the request header
- Postman reported an error unsupported media type [How to Solve]
- Spring MVC upload file error string cannot be converted to multipartfile
- [Solved] Vue Axios error: TypeError: Cannot set property ‘tableData‘ of undefined
- [Solved] Changing the selected file Error when uploading excel file. Net:: err_UPLOAD_FILE_CHANGED
- HTTP status 405 – request method ‘get’ not supported using springmvc
- [Solved] Jquery ajax “Uncaught TypeError: Illegal invocation”