Skip to content

input-file组件在移动端上开启多选时,选择图库或相册里文件后没有任何反应 #21194

@jardeng

Description

@jardeng

描述问题:

input-file组件在移动端上开启多选时,选择图库或相册里文件后没有任何反应

截图或视频:

526f46134cc1c452e9000827608f17c9.mov

如何复现(请务必完整填写下面内容):

  1. 你是如何使用 amis 的?
    在项目里使用测试发现的,用官网的快速开始里的demo复现的

  2. amis 版本是什么?请先在最新 beta 版本测试问题是否存在
    6.7.0、6.13.0,最新版本也存在,在官网文档中测试也存在

  3. 粘贴有问题的完整 amis schema 代码:

<script type="text/javascript">
  (function () {
    let amis = amisRequire('amis/embed');
    // 通过替换下面这个配置来生成不同页面
    let amisJSON = {
      "type": "page",
      "body": {
        "type": "form",
        "debug": true,
        "wrapWithPanel": false,
        "actions": null,
        // "api": "/amis/api/mock2/form/saveForm",
        "body": [
          {
            "type": "input-file",
            "mode": "normal",
            "name": "fileUploader1",
            "multiple": true,
            "receiver": "/apply/file-upload.do",
            "autoFill": {
              "tempFileInfo1": "${items|pick:ext,path,networkFullPath,name,value}"
            },
            "label": "邀请函",
            "useChunk": false,
            "accept": "*",
            "drag": false
          }
        ]
      }
    };
    let amisScoped = amis.embed('#root', amisJSON);
  })();
</script>
  1. 操作步骤
    在移动端上打开有文件上传组件的页面,文件上传组件input-file需设置为多选
    点击上传文件,选择图库或相册里的照片文件,一个或多个都行,选择后确认

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions