DEV Community

loading...

Push Data Into Array in State Array In Reactjs

TaLhA ZuBaIr MaYo
・1 min read

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…

Discussion (0)