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
前后端分离,amis版本6.10.0,文件上传组件有bug,当选择一个文件时,字段名叫files,没问题;当选择多个文件时,字段名仍旧应该叫files,而不是files[]。bug如下图:
组件配置:“随表单提交”->“二进制”
{ "name": "files", "label": "打印文件", "type": "input-file", "id": "u:2f02280d2fae", "btnLabel": "文件上传", "uploadType": "asForm", "proxy": false, "autoUpload": true, "useChunk": false, "accept": "", "drag": false, "asBlob": true, "formType": "asBlob", "required": true, "multiple": true }
可以用裸的html form表单做对比:
<form action="http://localhost:8000/api/v1/slices/upload/" enctype="multipart/form-data" method="post"> <label for="file-upload">选择文件:</label> <input type="file" id="file-upload" name="files" multiple> <br><br> <input type="submit" value="上传"> </form>
上面的html代码,提交的数据截图如下:
The text was updated successfully, but these errors were encountered:
👍 Thanks for this! 🏷 I have applied any labels matching special text in your issue.
Please review the labels and make any necessary changes.
Sorry, something went wrong.
@2betop
No branches or pull requests
前后端分离,amis版本6.10.0,文件上传组件有bug,当选择一个文件时,字段名叫files,没问题;当选择多个文件时,字段名仍旧应该叫files,而不是files[]。bug如下图:
组件配置:“随表单提交”->“二进制”
可以用裸的html form表单做对比:
上面的html代码,提交的数据截图如下:
The text was updated successfully, but these errors were encountered: