Support » Plugin: Support Tickets » [Plugin: Support Tickets] Multiple file-upload: How to?
6 years, 3 months ago
Is there a (simple) way to enable multiple-file uploads?
Not [Plugin: Support Tickets] but rather [Theme: Quality Control].
Sorry, my mistake.
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.
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. 😉
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.
@aden Fraser: No, it don’t works!