-
Notifications
You must be signed in to change notification settings - Fork 13
Home
-
Open your existing project with Visual Studio 2013/2012/2010 and add reference to GleamTech.FileUltimate.dll found in "Bin" folder.
-
Add the tag registration at the top of the aspx page which will host the control:
<%@ Register TagPrefix="GleamTech" Assembly="GleamTech.FileUltimate" Namespace="GleamTech.FileUltimate" %>
-
You can now add the FileManager control to the host page with this tag:
<GleamTech:FileManager ID="fileManager" runat="server" />
Optionally you can add GleamTech.FileUltimate.dll to the toolbox (via Choose Items option) and automate steps 2 and 3 by dragging or double-clicking toolbar item "FileManager"
-
Optional: FileUltimate does not depend on any Web.config settings to work (it's config-free for easy deployment). However if you want to support the lowest level upload method Html4 which is the only possible method for old browsers without Html5 or Flash or Silverlight support, then you will need to increase the request limits (ASP.NET's default is 4MB) so that you can upload files larger than 4MB on these browsers.
Edit your project's Web.config file and add the following settings inside<configuration>
tag:
<!--
Html4 upload method requires the limits to be set to the maximum value (2 GB).
Other upload methods use chunking so there is no 2GB limit for them.
-->
<location path="fileuploader.ashx">
<system.webServer>
<security>
<requestFiltering>
<!--
Maximum value for maxAllowedContentLength (in bytes) is 2147483648 (2GB).
maxAllowedContentLength should be always equal to (or greater than) maxRequestLength x 1024.
-->
<requestLimits maxAllowedContentLength="2147483648"/>
</requestFiltering>
</security>
</system.webServer>
<system.web>
<!-- Maximum value for maxRequestLength (in kilobytes) is 2097152 (2GB) -->
<httpRuntime maxRequestLength="2097152"/>
</system.web>
</location>