szablon FileBase64
import FileBase from "react-file-base64";
//in react body
<FileBase
className="form-control form-control-sm"
id="formFileSm"
type="file"
multiple={false}
onDone={(base64) =>
setPostData({ ...postData, selectedFile: base64 })
}
></FileBase>
Faryad Az Zim