示例:

function multipleFileUpload({
  // 最多可以选择的图片张数
  count = 9,
  // 所选的图片的尺寸
  sizeType = ["original", "compressed"],
  // 选择图片的来源
  sourceType = ["album", "camera"],
  // 开发者服务器接口地址
  url = "http://192.168.1.102:8002/file/upload",
  // 文件对应的 key,开发者在服务端可以通过这个 key 获取文件的二进制内容
  name = "file",
  // HTTP 请求 Header,Header 中不能设置 Referer
  header = {},
  // HTTP 请求中其他额外的 form data
  formData = {},
  // 超时时间,单位为毫秒
  timeout = 120000,
} = {}) {
...
}

 

相关文章:

  • 2021-10-18
  • 2022-01-22
  • 2022-12-23
  • 2022-12-23
  • 2021-09-01
  • 2022-12-23
  • 2022-12-23
  • 2021-08-31
猜你喜欢
  • 2021-11-29
  • 2020-01-17
  • 2022-01-30
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-29
相关资源
相似解决方案