Uploading Files with Blazor (Server & WebAssembly)

preview_player
Показать описание
Today, we start directly within Visual Studio because I want to show you how to upload files in Blazor web applications.

00:00 Introduction
00:07 Component Template using InputFile
00:42 Handling the OnChange of an InputFile component
02:05 Saving the File on a Local Disk
03:03 Running and Testing the Application
03:59 Uploading multiple Files
04:58 File Upload Best Practices
05:26 Blazor Server vs. Blazor WebAssembly
06:40 Conclusion

📌 File Upload Cheat Sheet (OWASP)

🔥 C#/.NET Bootcamp: The Fundamentals & more (Code FRIENDS10 for 10% OFF)*

📌 .NET Developer Roadmap

📌 YouTube Playlists:

✅ SUBSCRIBE FOR MORE VIDEOS

🚀 CONNECT & SUPPORT

* Affiliate Link: I earn a small commission at no additional cost
Рекомендации по теме
Комментарии
Автор

These are the tutorials I like.
I would also make a video for uploading files to chunk to a minimal api

Totti
Автор

Thanks for the content! I have a question. Is this a good solution to upload files up to 5Gb?

rafapioli
Автор

Is this Blazor web app in .Net 8, if not how can we do it by selecting auto (server and webassembly )

luisc
Автор

Seems like this still does not work in Firefox. I'll never understand the point of creating a great control like <InputFile> if it's not goiing to work with major browsers??

GuildOfCalamity
Автор

I tried your example here and it is running without error but I don't find the targetPath on my computer.
randomFile give me this: "/tmp/tmpIlKfaD.tmp". But where is this tmp-dir?
Using windows 10 with Blazor Webassembly .NET 6 in a Client/Server/Shared structure

jtrumpfheller