cfmorales Posted December 12, 2019 Share Posted December 12, 2019 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' => [ 'application/jpeg', 'application/jpg', 'application/bmp', 'application/png', ], 'mimeTypesMessage' => $this->l('Please upload a valid image'), ]) ], ] Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now