DEV Community

TaLhA ZuBaIr MaYo
TaLhA ZuBaIr MaYo

Posted on

Push Data Into Array in State Array In Reactjs

Hello All I hope All Are Doing Well

I have A issue I am uploading multiple images in Cloudinary via ReactJs

Here Is Input Field

         <input
          type="file"
         className="form-control"
         required
         onChange={(e) => setImages(e.target.files)}
          multiple
           /&gt

OnChange I'm storing all files on a state given below

const [images, setImages] = useState([]);

Now…

Top comments (0)