Migration From version 1.9 to 2.0

We have taken a major jump from 1.9 to version 2.0. Here are some changes to consider as you upgrade.

  • We have redesigned the web.config section to be more extensible.
  • Upload progress and temporary storage now supports the extensible provider model.
  • Redesigned progress information means you should use the UploadProgress class to get progress information (UploadProgressInfo class).
  • McHtmlInputFile control supports multi file upload.

These steps will help you to migrate from version 1.9 to version 2.0.

  1. Remove old and add new web.config section items.

<configSections>
 
<sectionGroup name="mediachase.fileUploader" type="Mediachase.FileUploader.Configuration.MediachaseFileUploaderSectionGroup, Mediachase.FileUploader">
<section name="fileUploaderContext" type="Mediachase.FileUploader.Configuration.FileUploaderContextSection, Mediachase.FileUploader"/>
<section name="tempFileStorage" type="Mediachase.FileUploader.Web.Configuration.TempFileStorageSection, Mediachase.FileUploader"/>
<section name="uploadProgress" type="Mediachase.FileUploader.Web.Configuration.UploadProgressSection, Mediachase.FileUploader"/>
<section name="fileUploadControl" type="Mediachase.FileUploader.Web.Configuration.FileUploadControlSection, Mediachase.FileUploader"/>
</sectionGroup>
 
<configSections>
 
<mediachase.fileUploader>
<fileUploaderContext/>
<tempFileStorage timeout="60">
       <providers>
       <add name="McLocalDiskTempFileStorageProvider" type="Mediachase.FileUploader.Web.LocalDiskTempFileStorageProvider, Mediachase.FileUploader" description="" tempStoragePath="%TEMP%" />
             </providers>
       </tempFileStorage>
 
       <uploadProgress timeout="60">
             <providers>
                    <add name="McInProcessProgressStateProvider" type="Mediachase.FileUploader.Web.InProcessUploadProgressProvider, Mediachase.FileUploader" description="" />
             </providers>
       </uploadProgress>
</
mediachase.fileUploader>

 

  1. Rebuild the progress bar control. Now you can create a progress page with one step, just add FileUploadProgress control to the page.
  1.  Modify the open progress window function. The new link should be:

window.open("Progress.aspx?key=progress&progressUid="+
            document.forms[0].__MEDIACHASE_FORM_UNIQUEID.value,
              "_blank", winprops);

 

  1. Now you can use Mediachase FileUploader.NET 2.0 version. Thank you.
Related information: Hello Upload lesson in Quick Developer Tutorial section.

Copyright 2007 Mediachase. All rights reserved.