We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
axios.post('/upload',formData, { headers: { 'Content-Type': 'multipart/form-data' }, withCredentials: true, onUploadProgress: (progressEvent) => { console.log(progressEvent); const percentCompleted = Math.round((progressEvent.loaded * 100) / progressEvent.total); onProgress(percentCompleted, progressEvent); }, }) .then((res) => { onSuccess('上传成功'); console.log(res); }) .catch((err) => { onError('上传失败'); });
添加了onUploadProgress 请求就不执行。
The text was updated successfully, but these errors were encountered:
有没哪位大侠可以帮帮我
Sorry, something went wrong.
No branches or pull requests
Basic Info
添加了onUploadProgress 请求就不执行。
The text was updated successfully, but these errors were encountered: