fileupload component doesn't show list files preview
I have this code but doesn't show list file preview when i select the images.
<FileUpload mode="advanced" url=" " id="fotos" onSelect={this.onSelect}
multiple={true} accept="/(\.|\/)(gif|jpe?g|png)$/*" maxFileSize={1000000} />
is there somebody that know how resolve this point.
thanks
fileupload component doesn't show list files preview
you can get the objectURL in onSelect event
ex:
ex:
Code: Select all
onSelectFile = e => {
console.log('File: ', e.files[0]);
this.setState({ imageUrl: e.files[0].objectURL });
};
-
- Information
-
Who is online
Users browsing this forum: No registered users and 3 guests