Тёмный

Capturing Uploaded Files in SQL - The Blazor File Upload Mini Course 

IAmTimCorey
Подписаться 422 тыс.
Просмотров 13 тыс.
50% 1

This is the Uploading Files with Blazor mini-course. So far, we have seen how to upload one or many files and how to associate files with form data. Now we want to capture that information into a SQL database. Along the way, we will talk about the upsides and downsides to storing files in the database.
Blazor File Upload Mini Course Playlist: • Blazor File Upload Min...
Full Training Courses: IAmTimCorey.com
Source Code: leadmagnets.ap...
Mailing List: signup.iamtimc...

Опубликовано:

 

20 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 34   
@oncalldev
@oncalldev Год назад
Going through the series. Top notch. I'm also getting back up to speed on my C# skills after having to deal with some legacy software for a while (vintage VB6) for a client, who thankfully has decided to announce an end of life to the product. In that regards, just seeing the code walk-throughs in these videos brings back those basic concepts and is a great refresher course in an of itself. On to part 5 of the series.
@IAmTimCorey
@IAmTimCorey Год назад
I’m glad they are helpful.
@ldiniz_x
@ldiniz_x Год назад
Great class as always Tim. I've also noticed the display bug on the NuGetPackages screen. It always start on the second item. A lot of times I spent seconds looking for the package and it the screen was just trolling me. Thanks Tim!
@IAmTimCorey
@IAmTimCorey Год назад
You are welcome.
@stipecule
@stipecule Год назад
Hi,Tim great stuff 👍 I was wondering what are your thoughts on using FILESTREAM in SQL SERVER for handling uploads, and would you recommend using it?
@IAmTimCorey
@IAmTimCorey Год назад
I dislike it for most cases. It causes a significant increase in database size, backup size (and timing), and more. Besides, files don't usually have the same backup requirements as the rest of your data.
@TyBarDesigns
@TyBarDesigns Год назад
Hi Tim, i apologize if you answered this in the video but i could not find it anywhere. Where would you recommend storing the actual image files in production? Is it okay to store them in wwwroot, say if youre deploying on azure? Or is that even possible? Im in the process of trying to figure this all out(im a noob). Thanks for all you do.
@TyBarDesigns
@TyBarDesigns Год назад
Disregard this message. After doing a bit of research I found that blob container is what i was looking for.
@IAmTimCorey
@IAmTimCorey Год назад
Glad you figured it out. Yeah, I prefer to store them away from wwwroot because if I deploy a new version of the website, I can't delete everything that currently exists. That may not seem like a big deal, but what it leads to is orphaned files that still exist but are no longer used (potential security hazard). Plus, it also limits you to only one server. If you decided to scale out (multiple web servers), you would have to replicate those images to every site copy. That's messy. Storing them in someplace like a blob container is a much more flexible solution.
@trentadams4428
@trentadams4428 Год назад
Great tutorial. I am a subscriber on your IAmTimCorey site, however, I'm not finding the full series, would you be able to help me out with finding that?
@IAmTimCorey
@IAmTimCorey Год назад
If you look at the playlists on this channel, you will see all of my free courses. Here is this specific one: ru-vid.com/group/PLLWMQd6PeGY2yqBcxsKvsNHplMrGa-SeK
@radhames4
@radhames4 11 месяцев назад
Hey Tim, Could you please put a video together to show how to upload files to a SharePoint site. Thank you
@IAmTimCorey
@IAmTimCorey 11 месяцев назад
Thanks for the suggestion. Please add it to the list on the suggestion site so others can vote on it as well: suggestions.iamtimcorey.com/
@Barto2You
@Barto2You Год назад
thanks again, but a question though: wouldn't it be more convenient to have enums like Microsoft.Data.CommandType.StoredProcedure and Microsoft.Data.ConnectionState.Open instead of System.Data ...?
@IAmTimCorey
@IAmTimCorey Год назад
I'm not sure what you are asking. System.Data is a namespace and couldn't be an enum.
@Barto2You
@Barto2You Год назад
@@IAmTimCorey Yes i Know, but i would expect to use for example Microsoft.Data.CommandType.StoredProcedure instead of System.Data.CommandType.StoredProcedure since we use now: microsoft.data.sqlclient
@AI7428
@AI7428 Год назад
If I want the table & submission form to be on separate components, will I have to make the list a global variable? If so, how?
@IAmTimCorey
@IAmTimCorey Год назад
Don't use a global variable. Store the data in the database and then add to it with the next form. Or pass the data between components.
@mosheshahar1408
@mosheshahar1408 3 месяца назад
I enjoy very much your videos and learn a lot from them, but you stopped sending me the source codes. Is there a reason, a limitation or something else?
@IAmTimCorey
@IAmTimCorey 3 месяца назад
I'm working on a bug with the system right now. Your email should come through once it is fixed.
@teashirt
@teashirt Год назад
Add Nuget glitch of showing the list starting at second row happens to me too. Have not changed font sizes. Also happens for other searches.
@IAmTimCorey
@IAmTimCorey Год назад
Yeah, it appears to be a global issue.
@cissemy
@cissemy Год назад
Hi Tim, How can I use : D:\\Temp\\Storage on production server ? Most of shared hosting only allow access to wwwroot. Thanks
@adriangabrielalexandrescu2705
This is how to map for example to look for another location outside server folder (wwwroot): In Program.cs / Startup.cs (depending on .net version) add under app.UseStaticFiles() this code : app.UseStaticFiles(new StaticFileOptions { FileProvider = new PhysicalFileProvider(@"E:\images"), RequestPath = "/images" });
@nssyr
@nssyr Год назад
How about capturing multiple files upload in SQL?
@IAmTimCorey
@IAmTimCorey Год назад
You do it the same way, just in a loop.
@codeDotnet
@codeDotnet 9 месяцев назад
Do you have a free course on Blazor? where is it?
@IAmTimCorey
@IAmTimCorey 9 месяцев назад
You are one a small one right now. Also, the Suggestion Site playlist is another that uses Blazor. I also have Blazor videos on this channel as well.
@codeDotnet
@codeDotnet 9 месяцев назад
@@IAmTimCorey Do a live stream about htmlx and how to use it with blazor and how it will be its future. Would you replace React?
@caseyspaulding
@caseyspaulding Год назад
Thanks!
@IAmTimCorey
@IAmTimCorey Год назад
You are welcome.
@MS-MS-MS-MS-MS
@MS-MS-MS-MS-MS Год назад
i hope you explain single database vs multiple node cluster how enterprises work with SQL failover cluster, how connection string look like in application layer
@gazzamundo
@gazzamundo 4 месяца назад
The title doesn't relate to the content or is misleading as at no point are you uploading to SQL? Yes, I understand in majority of cases its inefficient to upload into the database but I was expecting this video to go through that exact process. As a side note, have you looked into the SQL Filestream option for handling BLOB files instead of the traditional method of storing file binary data within a table.
@IAmTimCorey
@IAmTimCorey 4 месяца назад
The title is "Capturing Uploaded Files in SQL". That's what we are doing. We are identifying where the files are and then storing that information. I didn't say "Uploading Files to SQL" because that's not what we are doing. I know, it is a subtle difference, but it is an important one. Yes, I've seen and used the Filestream option, but I do not use it in almost any case. It is almost always a bad idea. Here is a video with more of my thoughts on the topic: ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-XnNbizvb1uM.htmlsi=Tro-t_uPG9VJ5oGR
Далее
10 CHALLENGE ⚽️ CELINE vs MICHIEL vs BRAM
0:59
Просмотров 2,9 млн
A SMART GADGET FOR CLUMSIES🤓 #shorts
0:21
Просмотров 1,7 млн
Brutally honest advice for new .NET Web Developers
7:19
How To Learn Blazor In 2023
59:44
Просмотров 89 тыс.
Beginner's Guide to the Bash Terminal
1:14:37
Просмотров 2,3 млн
Hacking Websites by Uploading files (With symlinks)
7:50
So You Think You Know Git - FOSDEM 2024
47:00
Просмотров 1,2 млн
10 CHALLENGE ⚽️ CELINE vs MICHIEL vs BRAM
0:59
Просмотров 2,9 млн