GeekArticles
Microsoft
Microsoft.NET


Drag-n-Drop file upload in Blazor using JS interop and minimal API (Part 1)
Uploading files from client computer to the server is a common task in web applications. You can either use jQuery Ajax or InputFile component to accomplish that task. Files to be uploaded on the server are typically selected by the end user using file input field. However, most of the browsers also allow you to select files by dragging them from the client computer to your web application. To that end this article discusses how drag-n-drop of files can be done in Blazor Server apps. I am going to assume that you are familiar with JavaScript interop. You may read my previous article in case you familiar with JS interop.
Sponsored Links
Related Topics
Use MVC, Razor Pages, Blazor, API Controllers, and Minimal APIs in a single ASP.NET Core application
Microsoft.NET
- Chapter 2: Protecting Your Database with Startup Options
- { End Bracket }: Hacking the Immune System
- C++ At Work: Copy Constructors, Assignment Operators, and More
- .NET Matters: Stream Decorator, Single-Instance Apps
- Security Briefs: Credentials and Delegation
- Design Patterns: Dependency Injection
- Test Run: Low-Level UI Test Automation
- Advanced Basics: Revisiting Operator Overloading
- Cutting Edge: ASP.NET Forms
- Web Q&A: Smart Navigation, ASP.NET Project Structure, and More