-
Notifications
You must be signed in to change notification settings - Fork 80
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
fileData是数组时getFormData()报错 #79
Comments
Merged
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
有一些通过一个接口批量上传图片的需求:
formData结构如: xxxId: 123 files: 二进制1 files: 二进制2
自编写的request函数传入{ xxxId: 123, files:[ File1, File2 ]}
这时使用getFormData()报错Failed to execute 'append' on 'FormData': parameter 2 is not of type 'Blob'。
主要需求是,通过同一个key上传多个文件。
The text was updated successfully, but these errors were encountered: