Search

How do I change my event PHP to accept multiple file uploads from the frontend?

<input type="file" name="fields[image]" multiple="multiple" />

See documentation

fields[0][image]

Increment the ID inside the square brackets for each additional file that is added. I think.

Wouldn't it be

fields[image][0]
fields[image][1]
etc

You might be right on that one.

Sorry, but you didn't look at the documentation I mentioned. I am using ONE form field with the attribute multiple

Does making the name an array

<input type="file" name="fields[image][]" multiple="multiple" />

and in the event selecting the

Allow Multiple

param not work on it's on? I've never come across anyone implementing this feature before so am curious to know as well!

Create an account or sign in to comment.

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.3-5.6 or 7.0-7.3
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.5 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details