Simple File Uploading
This article show how to use Mediachase FileUploader in simple mode
Simple mode is the easiest mode Mediachase FileUploader supports and it the
first required step in integrating FileUploader into your application. The key
to this approach is changing standart elements HtmlInputFile to
McHtmlInputFile. This mode allows use of both standart control as well as
Mediachase FileUploader at the same page.
[View
Sample C#]
[View Sample VB.NET]
In order to implement Mediachase FileUploader in simple mode you will need to do
the following steps:
-
create a page that will allow to upload file(s)
-
add component reference to Mediachase FileUploader in your project
-
in .aspx file add following line at the very top
<%@ Register TagPrefix="mc"
Namespace="Mediachase.FileUploader.Web.UI" Assembly = "Mediachase.FileUploader"
%>
-
change all the inputs with type=file to FileUploader object
<INPUT … name="FileUp" type="file" … runat="server"
ID="File1">
replace with:
<mc:McHtmlInputFile id="FileUp" runat="server"
Size="50"></mc:McHtmlInputFile>
If you add McHtmlInputFile in Design mode, everything will be done
automatically and you will only have to edit properties of the control.