WordPress.org

Ready to get started?Download WordPress

Forums

Support Tickets
[resolved] Multiple file-upload: How to? (6 posts)

  1. illy250
    Member
    Posted 3 years ago #

    Is there a (simple) way to enable multiple-file uploads?

  2. illy250
    Member
    Posted 3 years ago #

    Wrong topic!
    Not [Plugin: Support Tickets] but rather [Theme: Quality Control].

    Sorry, my mistake.

  3. Spencer Finnell
    Member
    Posted 3 years ago #

    Not yet. However the theme uses the built in uploading class, so I think it would just be a matter of looping through multiple fields. Ideally at some point I'd like to implement the flash uploader in the frontend.

  4. illy250
    Member
    Posted 3 years ago #

    Thank you for the quick reply. We are looking forward to the flash uploader.

    Meanwhile we try to convince our users to zip their files. ;)

  5. Aden Fraser
    Member
    Posted 3 years ago #

    I found this post a few days ago when trying to find a solution.

    After spending countless hours creating arrays, adding loops to the upload and even messing with the wordpress core I actually ended up creating the solution by mistake... here it goes:

    Open up whatever file you'd like to enable multiple uploads (either form-update-ticket.php or form-create-ticket.php).

    Find the input for files and replace it with the following:
    <input type="file" name="ticket_attachment[]" id="ticket_attachment[]"/>

    Now duplicate this as many times as needed.

    A hugely simple solution (just adding squared brackets to the name and id). It worked the charm for me, let me know if you have any troubles.

  6. frborg
    Member
    Posted 3 years ago #

    @Aden Fraser: No, it don't works!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic