Uploading large files in chunks to a server
When working with documents, images, or videos, uploading files to the server is a common task. While it’s possible to upload binary data as part of another entity and store it directly in the database, this approach can become problematic. Large files can quickly bloat your database, and users won’t see any visual feedback until the entire entity containing the file is fully uploaded.
A more effective solution is to upload files in chunks using a dedicated endpoint on the server. This way, users can see the progress of their uploads. In this example, we’ll create an endpoint in an ASP.NET Core application to handle chunked file uploads and build a .NET MAUI client that allows users to select a file and monitor the upload progress.
Figure 6.12 – File uploading demo
Getting ready
In this recipe, we will create both .NET MAUI and ASP.NET Core projects, so make sure that you have...