-
Notifications
You must be signed in to change notification settings - Fork 802
Additional Feature Implementing Large File Upload Editor
-
Support gigabyte size file upload (Chunk upload) Tested with 8.36GB file.
-
Use the similar setting as MultipleFileUploadEditor
-
Add Microsoft.AspNet.WebApi using Nuget Package Manager
-
Add WebApiConfig.cs in App_Start folder
WebApiConfig.cs
using System.Web.Http;
namespace YourProjectName
{
public class WebApiConfig
{
public static void Register(HttpConfiguration configuration)
{
configuration.Routes.MapHttpRoute("API Default", "api/{controller}/{id}",
new { id = RouteParameter.Optional });
}
}
}
-
Add
WebApiConfig.Register(GlobalConfiguration.Configuration);
in Global.asax.cs just belowFilterConfig.RegisterGlobalFilters(GlobalFilters.Filters);
-
Download all files in Modules/Common/LargeFileUpload (link below) and place in your project (Don't forget to change the namespace)
- Build the project, run T4 template and done. Your project is ready for upload gigabyte size files.
Please refer to Northwind Region Sample:
If you run into any issues or find any bugs, please open an issue in my repo.
Copyright © Serenity Platform 2017-present. All rights reserved.
Documentation | Serene Template | Live Demo | Premium Support | Issues | Discussions