I have a multi form, first form I capture user details and t


Topic: I have a multi form, first form I capture user details and then second form upload docs, but when I go back to the user details and come back to upload docs form the docs are not attached but the state still has the uploaded files

Paul TP asked 5 years ago

I have a multi form, first form I capture user details and then second form upload docs, but when I go back to the user details and come back to upload docs form the docs are not attached but the state still has the uploaded files. So how to keep the docs attached to form when the user goes back to a first form.

handleUpload = (file) => {
this.setState({
    image: file[0],
});
<MDBFileInput textFieldTitle="image"
    getValue={this.handleUpload}
/>

Please insert min. 20 characters.

FREE CONSULTATION

Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.

Status

Open

Specification of the issue
  • User: Free
  • Premium support: No
  • Technology: MDB React
  • MDB Version: 4.24.0
  • Device: Laptop
  • Browser: chrome
  • OS: fedora 31
  • Provided sample code: No
  • Provided link: No