Item15145: add support for uploading multiple files in one request
Priority: Normal
Current State: Closed
Released In: 2.1.8
Target Release: patch
Applies To: Engine
Component:
Branches: master Release02x01
Basically modern browsers support it for a long time now using
<input type="file" ... multiple />
CGI.pm supports it as well. Basically, you only need to read the
filepath
parameter and uploads in list context rather than in scalar context to get all of the files uploaded.
Why doesn't Foswiki leverage it? Must be legacy reasons.
Put the other way, while running the Foswiki::Engine only for the first upload a Foswiki::Request::Upload object is created. The rest is discarded. So one could argue this is almost a bug.
--
MichaelDaum - 14 Jun 2022