Forum Themes:
Welcome !

 Adding Upload Progress bar

Author Message
Samuel

  • Total Posts : 11786
  • Reward points : 168350
  • Joined: May 23 '01
  • Status: offline
Adding Upload Progress bar Thu. Sep 18, '08 10:59 AM (permalink)
If your hosting environment is in Full Trust mode, you can enable Upload Progress bar by making some code changes.

NOTE: if your host specifically set the trust level to Medium (most hosting companies do this), you cannot use this progress bar feature.

Click to see instruction if you see popup error message when you upload in Medium Trust

Instruction to enable upload progress bar

Open upload.aspx - uncomment (removing <%-- --%> surrounding the following block)
     <telerik:RadProgressArea id="RadProgressArea1" runat="server" />         
     <telerik:RadProgressManager id="RadProgressManager1" runat="server" />   


Open web.config, and make the following changes:
  1. If you are using IIS 6 or IIS7 Classic Mode:

    under system.web > httpModules, uncomment
    <add name="RadUploadModule" type="Telerik.Web.UI.RadUploadHttpModule, Telerik.Web.UI" />

    under system.web > httpHandlers, uncomment
    <add path="Telerik.RadUploadProgressHandler.ashx" verb="*" type="Telerik.Web.UI.RadUploadProgressHandler, Telerik.Web.UI" validate="false" />
  2. If you are using the IIS 7 Integrated Mode:

    under system.webServer > modules, uncomment
    <add name="ProgressModule" preCondition="integratedMode" type="Telerik.Web.UI.RadUploadHttpModule, Telerik.Web.UI" />

    under system.webServer > handlers, uncomment
    <add name="TelerikRadProgress" preCondition="integratedMode" path="Telerik.RadUploadProgressHandler.ashx" verb="*" type="Telerik.Web.UI.RadUploadProgressHandler, Telerik.Web.UI" />     
  3. In the SessionUpdateNotRequiredPages key under the <appSettings> section, add

    ~/Telerik.RadUploadProgressHandler.ashx

    to the end of the file list (separated by a comma).
  4. Application Trace must be set to false
    <trace enabled="false" requestLimit="1000" pageOutput="false" localOnly="true" mostRecent="true" />

  5. Outside of system.web, add:
        <location path="Telerik.RadUploadProgressHandler.ashx">          
             <system.web>          
                 <authorization>          
                     <allow users="*"/>          
                 </authorization >          
             </system.web>          
         </location>
  6. Make sure you set the trust level to Full:
    <trust level="Full" />
Save the file and upload it to your server to overwrite existing file. You will now see the upload progress bar when you upload a file.
<message edited by Samuel on Wed. May 26, '10 5:14 PM>
ASPPlayground.NET
~ see our Version 4 plans here

 
#1
    Online Bookmarks Sharing: Share/Bookmark

    Jump to:

    Current active users

    There are 0 members and 1 guests.

    Icon Legend and Permission

    • New Messages
    • No New Messages
    • Hot Topic w/ New Messages
    • Hot Topic w/o New Messages
    • Locked w/ New Messages
    • Locked w/o New Messages
    • Read Message
    • Post New Thread
    • Reply to message
    • Post New Poll
    • Submit Vote
    • Post reward post
    • Delete my own posts
    • Delete my own threads
    • Rate post

    2000-2012 ASPPlayground.NET Forum Version 3.9