Forum

Thread tagged as: Question, Forms

Multiple file uploads on a form

Hi,

I am looking at allowing the user to upload multiple items to a form before submission.

There have been a couple of posts looking at using something like:

<perch:input type="file" id="uploadcv" name="uploadcv" class="form-control" label="Current CV/LPI Capability Map" multiple="multiple" />

which does not work.

As such, currently, I am just placing multiple:

<perch:input type="file" ........

items within the form.

I was just wondering, and as I am typing this, I think I can probably do this with jquery (or something similar), but is there a way in which I could use something that is "natively" perch to act like a "repeating region" but for the client side, not admin.

That is, the user adds a file and then gets the option to add another etc etc.

Again, I think I have answered my own question here and will now look into the javascript/jquery option, but I would hate to miss a simple "perch" trick.

Thanks,

Andy

    Perch: 3.0.10, PHP: 5.6.32, MySQL: mysqlnd 5.0.11-dev - 20120503 - $Id: 76b08b24596e12d4553bd41fc93cccd5bac2fe7a $, with PDO
    Server OS: Linux, cgi-fcgi
    Installed apps: content (3.0.10), assets (3.0.10), categories (3.0.10), perch_events (1.9.5), perch_forms (1.9.1), perch_fundraisingstories (5.0), perch_news (5.6.1), perch_patientstories (5.0), perch_resources (5.0), perch_twitter (3.7)
    App runtimes: <?php $apps_list = array( 'content', 'categories', 'perch_twitter', 'perch_forms', 'perch_events', 'perch_news', 'perch_resources', 'perch_fundraisingstories', 'perch_patientstories' );
    PERCH_LOGINPATH: /admin
    PERCH_PATH: /home/thrombosisuk/public_html/admin
    PERCH_CORE: /home/thrombosisuk/public_html/admin/core
    PERCH_RESFILEPATH: /home/thrombosisuk/public_html/admin/resources
    Image manipulation: GD Imagick
    PHP limits: Max upload 12M, Max POST 12M, Memory: 64M, Total max file upload: 12M
    F1: 3b606135b33e6a102526838f4152a807
    Resource folder writeable: Yes
    HTTP_HOST: thrombosisuk.org
    DOCUMENT_ROOT: /home/thrombosisuk/public_html
    REQUEST_URI: /admin/core/settings/diagnostics/
    SCRIPT_NAME: /admin/core/settings/diagnostics/index.php

https://forum.grabaperch.com/forum/07-13-2015-multiple-file-uploads?page=1

Andrew Kennedy

Andrew Kennedy 0 points

  • 3 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

There's currently no support for the multiple attribute.