question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Warnings not being shown to users

See original GitHub issue

I’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:open
  • Created 4 years ago
  • Comments:7 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
IanVScommented, Apr 23, 2020

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?

1reaction
MuhammadGoharKhancommented, Jul 14, 2020

Use this css it will be fixed

.fsp-notifications__container { position: fixed; }

image

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found