I am trying to upload slide image in Magento 2. In some form I have suffix in name attribute for image field like this:

<input id="slide_image" name="slide[image]" class="input-file">

My question is how can request this file in following way as I am trying to request file like this:


I have also tried these ways with no luck


Ok, I got it working with this:

  • how do you save this to module image folder? Sep 9 '19 at 15:44

Just for information, if you want all the files inside the 'slide' array, you can use:


This will return a array with all the uploaded files.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.