Can Perl's CGI.pm process Firefox's <input type=“file”, multiple=“”> form fields?

前端 未结 4 1480
一生所求
一生所求 2021-01-03 07:33

Firefox 3.6 introduced a [multiple attribute on regular type=\"file\" input elements]( http://hacks.mozilla.org/2009/12/multiple-file-input-in-firefox-3-6/).

I canno

4条回答
  •  無奈伤痛
    2021-01-03 08:22

    Use the upload method in CGI.pm.

    In a list context, upload() will return an array of filehandles. This makes it possible to process forms that use the same name for multiple upload fields.

提交回复
热议问题