How to intercept errors generated in DotNet.js - Blazor Client Side RRS feed

  • Question

  • User1461220549 posted

    Hello guys,

    I´m getting out of memory error on DotNet.js because I´m trying to upload a too big file.

    My question is how I can Catch the error in Blazor Client ?

    Thanks for help

    Saturday, March 21, 2020 9:20 AM


  • User-474980206 posted

    you can not catch a javascript out of memory error. The user must manually reload the page. You should design the page to not exceed memory. You can check file size before access.

    in javascript there is no limit on upload file size, even when using ajax. if you are changing the file to a data url, you need to check the size first.

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Monday, March 23, 2020 4:47 PM