Untitled

 avatar
unknown
plain_text
a month ago
1.2 kB
2
Indexable
<FilePond
                                                            files={fileImage.length > 0 ? fileImage : (validation.values.document ? [{ source: validation.values.document, options: { type: 'remote' } }] : [])}
                                                            onupdatefiles={(fileItems) => setFileImage(fileItems)}
                                                            allowMultiple={false}
                                                            name="fileImage"
                                                            className="filepond filepond-input-multiple"
                                                            server={{
                                                                load: (source, load) => {
                                                                    fetch(source) 
                                                                        .then((res) => res.blob())
                                                                        .then((blob) => load(blob));
                                                                }
                                                            }}
                                                        />
Leave a Comment