Skip to content Skip to sidebar Skip to footer

How To Take Multiple Images Value And Push Array

I want to do a multiple file upload and I have to convert an image into base64 encoded string. I have one form and two form fields, like firstname & image upload. Suppose a use

Solution 1:

You need an array. Just change this string:

json.gallery=({"image": floor_image });

to

json.gallery[]=({"image": floor_image });

Post a Comment for "How To Take Multiple Images Value And Push Array"