-
Notifications
You must be signed in to change notification settings - Fork 458
Description
🐛 Bug Report
💻 Repro or Code Sample
Please see the attached zip file for a runnable solution.
-
Run the BlazorAppInputFileIssue project, go to the "Input file issue page", click the "Upload file" button and open a movie or image file of size 128KB or larger* (*on windows you can use the command 'fsutil' to create files of a certain size, provided you are an Administrator, e.g. "fsutil file createnew 128kb.jpg 131072" creates a 128KB zero-filled jpg file). After clicking the open button, wait one minute (A).
-
Restart the solution and try uploading a smaller file, such as a 16 KB file. Now the splash screen appears and the file is uploaded to the server correctly.
-
Close the solution, change the project to use FluentUI 4.12.1 and try the above test again . Now it works.
-
Try 4.13.1 again, comment out the 'ShowSplashScreenAsync' line in OnProgressChangeAsync() and try the above test again . Now it works.
🤔 Expected Behavior
(A) A splash screen showing the upload progress should appear and the file should be uploaded to the server.
😯 Current Behavior
(A) The "uploading..." splash screen does not appear, and after waiting one minute a "System.TimeoutException: Did not receive any data in the allotted time" exception occurs.
💁 Possible Solution
Not sure, but changing FluentInputFile.razor.cs to call the "OnProgressChange" callback with a 0 percent value before the stream is opened may fix the issue.
🔦 Context
We use the FluentInputFile component to upload files to the web server for import. We cannot use this release if files above a certain size cannot be uploaded.
🌍 Your Environment
- OS & Device: Windows on PC
- Browser: Google Chrome
- .NET and Fluent UI Blazor library Version: 9.0 and 4.13.1
BlazorAppSplashScreenIssue.zip
]