You are here: Foswiki>Tasks Web>Item15145 (06 Aug 2023, MichaelDaum)Edit Attach

Item15145: add support for uploading multiple files in one request

pencil
Priority: Normal
Current State: Closed
Released In: 2.1.8
Target Release: patch
Applies To: Engine
Component:
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 />

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

 
Topic revision: r10 - 06 Aug 2023, 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