Use BlazorServer mode with FluentUI FileInput upload file throw Exception #63089
              
                Unanswered
              
          
                  
                    
                      Gloria-GK-406
                    
                  
                
                  asked this question in
                Q&A
              
            Replies: 2 comments
-
| Possible fixes for the file upload exception: Increase request size limit in Program.cs with MultipartBodyLengthLimit. Configure UseStaticFiles + FileProvider if uploaded files should be served. When using , make sure to copy the stream with CopyToAsync instead of using OpenReadStream directly. | 
Beta Was this translation helpful? Give feedback.
                  
                    0 replies
                  
                
            -
| I see that you have received the answer and that you can close the case. 😉 | 
Beta Was this translation helpful? Give feedback.
                  
                    0 replies
                  
                
            
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
-
The problem is as described in microsoft/fluentui-blazor#4052. I don't know where the configuration went wrong, but an exception is thrown whenever I upload a file. Could someone please tell me if this is caused by a missing configuration?or something elese i made mistake.
Beta Was this translation helpful? Give feedback.
All reactions