Validating files and disabling preview
See original GitHub issueHow it’s supposed to validate, for example, file size? Or separate valid files from invalid ones?
How about introducing smth like validate
callback? We can pass each dropped file there, split them by returned result and then pass corresponding arrays to onDropAccepted
and onDropRejected
.
Also, it’s said “We might want to disable the preview creation to support big files”, but there is no way to detect whether file is actually “big”. So we should either disable previews at all, or create previews for everything. Maybe, it’s worth to add another function to check whether preview for particular file should be created?
And, shouldn’t it be this.props.disablePreview
here?
Issue Analytics
- State:
- Created 8 years ago
- Comments:9
Top Results From Across the Web
Preview mode - Optimize Resource Hub - Google Support
Preview your experience variants on multiple devices.Preview mode allows you to validate that a variant renders as intended before you start an experiment....
Read more >Validating and Previewing Assets Prior to Import
If your file contains more than 200 assets and you want to validate them all before starting the import process, click Validate All....
Read more >What is Protected View? - Microsoft Support
Protected View is a read-only mode where most editing functions are disabled. There are several reasons why a file opens in Protected View:....
Read more >“Enable enhanced document viewer” unchecked in Customize ...
I want to remove the preview window that shows up when you click a file in the content tab. I have unchecked the...
Read more >Turn off file validation - ADMX Help
Turn off file validation ; Registry Path, software\policies\microsoft\office\16.0\excel\security\filevalidation ; Value Name, enableonload ; Value Type, REG_DWORD.
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
Here’s how I validated for anyone finding this.
is this issue abandoned, I would like to have this option too =)