Closed YujiaCheng1996 closed 1 year ago
有一些通过一个接口批量上传图片的需求: 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上传多个文件。
有一些通过一个接口批量上传图片的需求: 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上传多个文件。