Get a Customized Plan

The Fairway Technologies Blog

January 2, 2019 | Paul D. Sheriff

Uploading Files with MVC - Part 6

In this blog series, you have assumed that everything has gone correctly when uploading files. However, if you attempt to upload a file that is too large, you receive an error from your web server. In this blog post you are going to learn how to get the maximum size of file allowed, display that value on the page, handle an error when the file is too large, and modify the maximum size of file allowed. If you have not done so already, please download the sample from Part 5 so you can follow along with this blog post.

December 26, 2018 | Paul D. Sheriff

Uploading Files with MVC - Part 5

So far in this blog post series on uploading files with MVC, you have learned to style the file upload control, use a view model for data binding, create a thumbnail from an uploaded image, and store files on the server's file system. In this post, you learn to store the uploaded file in an SQL Server table. If you have not done so already, please download the sample from Part 4 so you can follow along with this blog post.

November 14, 2018 | Paul D. Sheriff

Uploading Files with MVC - Part 4

So far in this blog post series on uploading files with MVC, you have learned how to style the file upload control, use a view model for data binding, and create a thumbnail from an uploaded image. In this post, you learn to store the uploaded file in a folder on your server.

October 31, 2018 | Paul D. Sheriff

Uploading Files with MVC - Part 3

In the last two blog posts in this series, you learned to style the file upload control and to use a view model to simplify data binding. In this third blog post, you build a class that allows you to take a large image and create a thumbnail image from it (See Figure 1).

October 16, 2018 | Paul D. Sheriff

Uploading Files With MVC - Part 2

In the last blog post, you learned to style the file upload control and to upload a file. You gathered information about the file and placed that information into individual variables in a controller class. In this blog post, you will create a view model class with properties to hold the file information, and a method to extract the file information and upload the file.

September 18, 2018 | Paul D. Sheriff

Uploading Files With MVC - Part 1

Users frequently want the ability to upload files to a website. If you are using MVC and Bootstrap, you know that the normal file upload control does not look like the rest of your bootstrapped controls. In this blog post, you are going to learn how to modify the default look and feel of the file upload control to make it match the rest of the Bootstrap-styled HTML.

New Call-to-action
New Call-to-action