KB - Uploader recent changes , SSL,NTLM etc

  •  02-03-2009, 1:03 PM

    KB - Uploader recent changes , SSL,NTLM etc

     
    Note:
     
    Please check the new update :
     
     
    Now it support Flash10, SSL(HTTPS), NTLM(windows authentication)
     
    ------
     
     
    Hi all,
     
    Today we have released a new build of Ajax Uploader.
     
    Here are the major changes:
     
    1. Silverlight mode now can cancel the upload request (fix bug).
     
    The button's default onclick script would be ignored. (so link button would not postback anymore)
     
    2. Support queue between uploaders (No 'Upload is processing' anymore)
     
    3. New property FlashUploadPage for Flash . (because Flash compability is worse than silverlight)
     
    4. SSL(HTTPS):
    Flash do not support SSL , so if an application use SSL , it should run this code :
    (02-17 we have already change the FlashUploadPage automatically for the SSL)
     
    5. NTLM Windows/Basic Authorization
    For this kind of IIS configuration , developers need extra works to make the Uploader-Flash-mode work.
     
    1. Add new domain, for example , yourwebsite-upload.com , and point to the same website.
    2. Create new directory 'UploadService', and goto IIS , set that directory disable the authorization and allow anonymous.
    3. add new crossdomain.xml in the root of website, content should be <cross-domain-policy><allow-access-from domain="yourwebsite.com" /></cross-domain-policy>
     
     
     
    ----------------------------------
     
    Addition description for the FlashUploadPage :
     
    The primary solution , is send the upload data to another page , even send to another website .
     
    So the aim is this :
     
    for example :
     
    your website is,
     
     
    And then the Flash addon do not support SSL , so you need send it to another http website.
     
    You can create another website for it :
     
     
    this website do not need put any app code , you just need put the uploader dll and register the UploadModule into web.config.
     
    and in that website , provide a empty page for the FlashUploadPage
     
     
    so in your uploaderpage.aspx , you can set :
     
    uploader.FlashUploadPage="http://mytempsite.com/Upload/AnyName.aspx";
     
    and you also need to keep mywebsite.com and mytempsite.com use the same tem directory :
     
    <add key="CuteWebUI.AjaxUploader.TempDirectory" value="c:\mytemp" />
     
    Flash do not allow you send data to another website , so you need add the crossdomain.xml to turn it on
     
     
    ---------------
     
     
    If you finish these step ,
     
    the Flash object will send file to the http://mytempsite.com/Upload/AnyName.aspx ,
    And the file will save to the c:\mytemp .
     
    And then the https://mywebsite.com/uploaderpage.aspx can read the file from c:\mytemp
     
     
     
     
    Regards,
    Terry
     
     
     
     
     
     
     
View Complete Thread