Support for file type
See original GitHub issueHey there,
i’m running into a problem with a custom file select input component that expects an optional instance of File
for the selectedFile: PropTypes.instanceOf(File)
prop.
Now i defined a mobx-react-form field with type: 'file'
and value: null
for it but it still has a default value of ''
(empty string), which results in an error because the file picker does not accept strings. How can i set default value to null
in this case?
Issue Analytics
- State:
- Created 7 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
What are the supported file types? - Widen Connect
dv), Flash video (.flv), HDV, h.264, IMX, MPEG (.mpg, .mpeg), MPEG-2, MPEG-4 (.mp4), Material Exchange Format (.mxf), Premier Project (.prprog), ...
Read more >File types supported - Microsoft Information Protection SDK
File types supported for classification only ; Adobe Portable Document Format: .pdf ; Microsoft Power BI: .pbit, .pbix ; Microsoft Project: .mpp, ....
Read more >Supported File Types - Box Developer Documentation
Supported File Types · Documents · Text-Based Files · Presentations · Images · Audio Files · Video Files · Flash/Mobile Video Files ·...
Read more >SUPPORT Files: What It Is and How to Open It
SUPPORT files are typically a type of binary file used by certain software, and many software packages can share a common file extension....
Read more >Supported File Types - Smartling Help Center
Supported File Types ; Google Docs .docx. 10MB, n/a, See Microsoft Word. ; Google Sheets .xlsx. 10MB, n/a, See Microsoft Excel. ; Google...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@DominikGuzei Using
null
on a simple input withtype="file"
I get:So the default value should be an empty string, and you should set
null
manually on your custom component.Thanks for the ultra fast fix! works like a charm now 😉