Open PrimozRome opened 1 year ago
Since my LIC files are basically XML files with LIC extension, I have tried the following:
import { FileUploader } from "react-drag-drop-files";
const fileTypes = ['xml'];
<FileUploader
label="Drop your license (*.lic) file here"
handleChange={handleChange}
name="file"
types={fileTypes}
/>
If I rename my LIC file to XML and drag and drop, then it is accepted. How do I achieve that my users can upload *.lic
file
Can anyone help?
I am having problem with file types. I want to accept
*.lic
files, and I can not get it to work... Here is my code:When I drag and drop my file
DWX-J13M-DRCI-JQR1.lic
the component would say error File type/size error, Hovered on types!.What am I doing wrong?