-
Notifications
You must be signed in to change notification settings - Fork 158
Setup
####NuGet
You can easily install/uninstall Backload in your project with the NuGet package manager. Winthin your Visual Studio environment open the package manager and search for "Backload". Install it from the gui or type the following command into the package manager console:
PM> Install-Package Backload
The projects website on NuGet is http://nuget.org/packages/Backload/. The package copies all client files to the default folder, registers the assembly and installs the bundeling feature (~/App_Start/BackloadConfig.cs).
Note: One difference to the setup process described in Example01 is, that a NuGet package can't modify the globla.asax file when installing so NuGet packages typically use the WebActivator. This modification is needed only to use the bundeling feature (register client side scripts and styles). If you do not want this, remove the reference to the WebActivator assembly, delete the file "BackloadConfig.cs" from the ~/App_Start folder and add the RegisterBundles()
method manually to the global.asax file as described in Example01.
####Manual installation The Backload. component has some features that simplify the setup process, e.g. bundeling and zero configuration (see [Example 01](wiki/example-01)). Bundeling is a common task in ASP.NET MVC and you should be familiar with it. Zero configuration means, that any setting has a default value, so if you are happy with the defaults, you do not have to make any setting and you do not even have to touch the web.config file at all. To get some basic knowledge on this process you may want to look through the examples 1 to 3.
Setting up a file upload system consists of two parts: the client side and the server side part. The Backload. component is the server side part. Setting up Backload. is straightforward: Reference the Backload. assembly, prepare the web.config and make your settings. Also, make sure you have write permissions to the upload folder (Default: ~/files). The client side part depends on the client side component you use. Backload. can interact with (or adapted to) different client side plugins, but this version of Backload. uses the JQuery File Upload Plugin. For more information on the client part, consult its project pages.
The basic setup process is described in example 01. Configuration of the Backload. component within the web.config file is shown in example 02. Using an external config file in order to keep the web.config file clean is described in example 03.
Backload. (Standard version): Copyright 2013, Steffen Habermehl, License (Standard version): MIT license
Professional and Enterprise (source code) version are available under a commercial license.
Follow us on Twitter: @Backload_MVC