You are here: Foswiki>Tasks Web>Item15145 (12 Jul 2022, MichaelDaum)Edit Attach

Item15145: add support for uploading multiple files in one request

Priority: Normal
Current State: Waiting for Release
Released In: 2.1.8
Target Release: patch
Applies To: Engine
Branches: master Release02x01
Reported By: MichaelDaum
Waiting For:
Last Change By: MichaelDaum
Basically modern browsers support it for a long time now using

<input type="file" ... multiple /> 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

Topic revision: r9 - 12 Jul 2022, MichaelDaum
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy