We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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:
*.lic
import { FileUploader } from "react-drag-drop-files"; const fileTypes = ['lic']; <FileUploader label="Drop your license (*.lic) file here" handleChange={handleChange} name="file" types={fileTypes} />
When I drag and drop my file DWX-J13M-DRCI-JQR1.lic the component would say error File type/size error, Hovered on types!.
DWX-J13M-DRCI-JQR1.lic
What am I doing wrong?
The text was updated successfully, but these errors were encountered:
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
Sorry, something went wrong.
Can anyone help?
Hi @PrimozRome , really sorry for late (so late actually) reply. the global types not supported at the moment but we could add this in the future
No branches or pull requests
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?
The text was updated successfully, but these errors were encountered: