-
Notifications
You must be signed in to change notification settings - Fork 149
Allow one Image select #59
Comments
you can use prop singleImage={true}. |
i am setting singleImage={true} but its not working it is selecting more then one images and showing there preview. i only want to show preview of one image |
@osamakhanedu me too |
using singleImage={true} is restricting from selecting multiple images at a time. But still multiple images can be selected by one at a time. |
Maybe someone who worked with the Component might figure out how to implement a behaviour that only allows for a single Image to be added at a time (Just like |
A quick solution would be to disable the button when there's an image. Adding the following to the disabled={this.props.singleImage && this.state.files[0]} |
@juusaw Where are you see the button ? Or you change the the source component code ? |
That's internal to the library, yes. So an update to the library would be required. |
For fix this issue need to add |
none of them suggestion working, |
So far my best quick fix is to add |
@taylorstyers |
@taylorstyers |
how can config component so it allow only selection of single image currently can select multiple images
The text was updated successfully, but these errors were encountered: