vutoan266 / react-images-uploading

The simple images uploader applied Render Props pattern that allows you to fully control UI component and behaviors.
https://github.com/vutoan266/react-images-uploading
MIT License
320 stars 52 forks source link

Where is name attribute in input field? #109

Closed jualiasha closed 2 years ago

jualiasha commented 3 years ago
jualiasha commented 2 years ago

ok , i found that tricky attributes: const inputProps = { name: "files", //you can add any html attribute for this input } ( <ImageUploading multiple value={loadedImages} onChange={onChange} maxNumber={maxNumber} dataURLKey="data_url" inputProps={inputProps}

{({ imageList, onImageUpload, onImageRemoveAll, onImageUpdate, onImageRemove, }) => ( // write your building UI )})

jualiasha commented 2 years ago

everything is ok, but documentation can be written a bit better. Thanks