Warnings not being shown to users
See original GitHub issueI’ve set a max filesize on my picker, and am finding recently that when choosing a file that exceeds that limit, nothing happens. It is not accepted (correct behavior), but there’s no error shown to users to let them know what happened.
I’ve also tried using onFileSelected
to manually show a warning, and that doesn’t work either:
filepickerClient
.picker({
onFileSelected: (file) => {
console.log(file.size);
throw new Error('Not accepted');
},
})
.open();
And I see the filesize in the console, but still I don’t get any kind of message in the UI.
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (1 by maintainers)
Top Results From Across the Web
warnings — Warning control — Python 3.11.1 documentation
Warning messages are typically issued in situations where it is useful to alert the user of some condition in a program, where that...
Read more >How to disable Python warnings? - Stack Overflow
Look at the Temporarily Suppressing Warnings section of the Python docs: If you are using code that you know will raise a warning,...
Read more >Manage warnings about unsafe sites - Google Chrome Help
You'll see a warning if the content you're trying to see is dangerous or deceptive. These sites are often called "phishing" or "malware"...
Read more >warnings – Non-fatal alerts - Python Module of the Week
Deliver non-fatal alerts to the user about issues encountered when running a program. Available In: 2.1 and later. The warnings module was introduced...
Read more >How Do I Avoid Users Becoming Numb to Warnings?
In some cases the best way to warn the user about dangerous actions is to... not warn them at ...
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 FreeTop 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
Top GitHub Comments
I don’t think this is an
enhancement
, it’s a bug if users cannot see error messages and are left to wonder why their files are not uploading, right?Use this css it will be fixed
.fsp-notifications__container { position: fixed; }