如何使用HTML代码在AEM中上传多个文件

huangapple 未分类评论46阅读模式
英文:

How to upload multiple file in AEM using HTML code

问题

我正在尝试使用简单的HTML代码在AEM中上传多个文件。在前端,它显示已上传多个文件。但在请求中,只有一个文件可用。
以下是我的示例HTML代码:

<form name="formname" method="post" accept-charset="UTF-8" enctype="multipart/form-data" action="form.html" style="display: block;">
<input multiple="multiple" type="file" id="field-supportingFiles" name="supportingFiles" class="input-file" accept=".pdf, .doc, .docx, .rtf, .txt, .html, .jpeg, .png">
<button type="submit">提交</button>
</form>
英文:

I am trying to upload multiple files using simple HTML code in AEM. In the front end, it shows that multiple has been upload. But in a request, only one file is available.
Below is my sample HTML Code

&lt;form name=&quot;formname&quot;  method=&quot;post&quot; accept-charset=&quot;UTF-8&quot; enctype=&quot;multipart/form-data&quot; action=&quot;form.html&quot; style=&quot;display: block;&quot;&gt;
&lt;input multiple=&quot;multiple&quot; type=&quot;file&quot; id=&quot;field-supportingFiles&quot; name=&quot;supportingFiles&quot; class=&quot;input-file&quot; accept=&quot;.pdf, .doc, .docx, .rtf, .txt, .html, .jpeg, .png&quot;&gt;

  &lt;button type=&quot;submit&quot; &gt;Submit  &lt;/button&gt;
&lt;/form&gt;

huangapple
  • 本文由 发表于 2020年5月4日 17:31:14
  • 转载请务必保留本文链接:https://java.coder-hub.com/61589069.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定