Jump to content

Is there a way to upload multiple images in a single input using FormFields?


Recommended Posts

I'm currently using formfields to buid my forms, i have the input who handles the upload of a single images, the thing is a want to upload multiple images but i dont want to use formbuilder because the structure of my code will break, is there any way to do this?


this is my initial code

['name' => 'item_img', 'type' => 'file',
                    'label' => $this->l('Image'), 'required' => true,
                    'constraints' => [
                        new File([
                            'maxSize' => '1024k',
//                            'multiple' => true,
                            'mimeTypes' => [
                            'mimeTypesMessage' => $this->l('Please upload a valid image'),


Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...