KB - Uploader recent changes , SSL,NTLM etc

Last post 08-24-2009, 2:12 PM by mdc124. 15 replies.
Sort Posts: Previous Next
  •  02-03-2009, 1:03 PM 48311

    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
     
     
     
     
     
     
     
  •  02-16-2009, 11:06 PM 48898 in reply to 48311

    Re: KB - Uploader recent changes , SSL,NTLM etc

    (02-17 we have already change the FlashUploadPage automatically for the SSL)
  •  03-31-2009, 8:49 AM 50516 in reply to 48311

    Re: KB - Uploader recent changes , SSL,NTLM etc

    Hello,

    I'm trying to evaluate the new build of Ajax Uploader and I am still having problems with using "Integrated Windows Authentication". I think I'm not doing something right here....

    Here is my setup ..This is for a intranet site and running IIS 6.0 on Windows 2003 server.

    I have a intranet application
      Default Website
        - mywebsite          (C:\inetpub\wwwroot\mywebsite)
              - selecting-multiple-files.aspx

    Based on your steps you say create a new application and point it to the same website so I will now have

       Default Website
        - mywebsite          (C:\inetpub\wwwroot\mywebsite)
              - selecting-multiple-files.aspx
        - mywebsiteUpload          (C:\inetpub\wwwroot\mywebsite)
              - selecting-multiple-files.aspx

    Now where am I supposed to create the "UploadService" and what is in this folder?

    I created the crossdomain.xml and placed it in C:\inetpub\wwwroot\mywebsite and it contains
     <cross-domain-policy>
          <allow-access-from domain="http://myserver/mywebsite/"/>
    </cross-domain-policy>

    What am I supposed to set the uploader.FlashUploadPage to ... I don't have a Upload.aspx in my UploadServicefolder?

    I need to get this working because I have to use "Integrated Windwos Authentication" and I need to allow the users to select multiple files and I am using Flash as we don't SilverLight installed.

    On a different note.. are there plans to add the funtionality to upload an entire folder?

    Regards,
    Anzar

  •  03-31-2009, 10:42 AM 50524 in reply to 50516

    Re: KB - Uploader recent changes , SSL,NTLM etc

    Anzar,
     
    You should create an empty file : C:\inetpub\wwwroot\mywebsite\UploadService\Upload.aspx
     
    And the xml should be :
     
    <allow-access-from domain="myserver"/>
    , the  FlashUploadPage  should be http://mywebsiteUpload/UploadService/Upload.aspx
    Regards,
    Terry
     
  •  03-31-2009, 4:26 PM 50563 in reply to 50524

    Re: KB - Uploader recent changes , SSL,NTLM etc

    Terry, thank you for your prompt reply.
     
    I was still not able to get this working and may be I'm making this more complicated than it should be...
     
    When you say add new domain ... do I have to add a new website under IIS or will a new virtual directory suffice?
     
    Here are the steps I followed.
     
    I have a IIS 6.0 server with no applications..
     
    1. I created a new folder in windows "mywebsite" under C:\Inetpub\wwwroot\ and copied files from "Framework 2.0-VB-NoAjax" folder in the zip file.
    2. Under IIS I said create new virtual directory under "Default Website" and named it "mywebsite". I set the path to it as "C:\Inetpub\wwwroot\mywebsite".
    3. I have "Enable Anonymous Access" enabled so everything works fine.
    4. Now I disabled "Enable Anonymous Access" and it prompts me with a dialog for a userid\password when I try to upload.
    5. So I created a new virtual directory under "Default Website" and named it "mywebsiteupload" and  set the path to it same as the previous one as "C:\Inetpub\wwwroot\mywebsite". I have "Enable Anonymous Access" enabled for this virtual directory.. I didn't change this.
    6. I created a new folder 'UploadService' and put in a blank file "upload.aspx".
    7. I went thru IIS under "mywebsiteupload" and verified that the directory 'UploadService' has anonymous access enabled and authorization disabled.
    8. I created a new file crossdomain.xml and placed it in "C:\Inetpub\wwwroot\mywebsite". The contents of this file are <cross-domain-policy>
            <allow-access-from domain="rvimgcactest"/>
      </cross-domain-policy>
      Note: rvimgcactest is my machine name so to access a page I go to http://rvimgcactest/mywebsite/selecting-multiple-files.aspx
    9. I then set the FlashUploadPage  to  http://mywebsiteUpload/UploadService/Upload.aspx 
    10. At this point I try to upload from http://rvimgcactest/mywebsite/selecting-multiple-files.aspx I get "Flash error- security-errorstring"
    Note, in order to get to the upload.aspx page I would normally use http://rvimgcactest/mywebsiteupload/UploadService/Upload.aspx 
    I tried changing the FlashUploadPage  to this path but then I get a server side exception.
    What is the difference between "Framework 2.0-VB-MagicAjax" , "Framework 2.0-VB-MicrosoftAjax" and "Framework 2.0-VB-NoAjax".. should I be using the files from "Framework 2.0-VB-MicrosoftAjax" instead??? I tried to look up the difference in the help file but couldn't find any thing.
     
    Any help would be greatly appreciated.
     
    Thanks,
    Anzar
  •  03-31-2009, 11:54 PM 50581 in reply to 50563

    Re: KB - Uploader recent changes , SSL,NTLM etc

    Anzar,
     
    Sorry I misunderstand your previous post.
     
    You can try this :
     
    1. create a virtual application under "Default Website" , named it "myuploaderside" , so it's http://localhost/myuploaderside , and http://127.0.0.1/myuploaderside
     
    2. create empty /mywebsite/UploadService/Upload.aspx
     
    3. In IIS manager, set the http://127.0.0.1/myuploaderside/UploadService/ do not use NTLM
     
    4. the xml should be <allow-access-from domain="localhost"/>
     
     
     
    Regards,
    Terry
     
     

     
  •  04-01-2009, 9:39 AM 50609 in reply to 50581

    Re: KB - Uploader recent changes , SSL,NTLM etc

    Shouldn't I replace the localhost and 127.0.0.1 with my server name "rvimgcactest" ???
     
    It looks like its working if I use it on the server but cannot get it to work from another machine.
     
    And based on your reply looks like I need only one "virtual application"..correct??
  •  04-01-2009, 1:33 PM 50632 in reply to 50609

    Re: KB - Uploader recent changes , SSL,NTLM etc

    Hi,
     
    localhost , 127.0.0.1 , rvimgcactest , can used at the same time.
     
    You just need to understand it , and config it.
     
    So it only need one application on one website configuration.
     
    Regards,
    Terry
  •  04-01-2009, 3:04 PM 50652 in reply to 50632

    Re: KB - Uploader recent changes , SSL,NTLM etc

    I tried the steps you outlined and I get the message
     
    "Unable upload data via Flash+NTLM"
  •  04-01-2009, 6:39 PM 50665 in reply to 48311

    Re: KB - Uploader recent changes , SSL,NTLM etc

    Hi Terry
     
    I have downloaded the latest tool but in Firefox for Mac when I click on a button that should open up the file browser (which it does in Firefox for Windows), I have to click it twice or three times and then it shows me a box below the button I clicked and only if I click in that textbox does the file dialog open.
     
    Do you have any ideas why that would happening?
     
    Kind regards
     
    Andrew
  •  04-02-2009, 3:13 AM 50677 in reply to 50665

    Re: KB - Uploader recent changes , SSL,NTLM etc

     
    Just fixed it . please try again.
     
    Regards,
    Terry
     
  •  04-02-2009, 3:14 AM 50678 in reply to 50563

    Re: KB - Uploader recent changes , SSL,NTLM etc

    Anzar,
     
    I think your have made a wrong step.
     
    Or maybe you need close the browser and open it try again.
     
    Regards,
    Terry
     
  •  04-02-2009, 4:08 AM 50681 in reply to 50677

    Re: KB - Uploader recent changes , SSL,NTLM etc

    Man you guys are quick :)  Brilliant, thank you.
     
    I will let you know if I have any more problems.
     
    Cheers
     
    Andrew
     
  •  04-02-2009, 9:43 AM 50692 in reply to 50678

    Re: KB - Uploader recent changes , SSL,NTLM etc

    yeah thats what even I'm thinking..
     
    okay where do we set the FlashUploadPage to http://127.0.0.1/myuploadersite/UploadService/Upload.aspx
     
    I was doing this at design time from Visual Studio and setting the property there.. !!
     
    <CuteWebUI:Uploader runat="server" ID="Uploader1" InsertText="Upload Multiple Files (Max 10M)" MultipleFilesUpload="true" FlashUploadPage="http://127.0.0.1/myuploadersite/UploadService/Upload.aspx" >
            <ValidateOption MaxSizeKB="10240" />
        </CuteWebUI:Uploader>
     
    Thanks for all your help.
  •  08-23-2009, 11:26 PM 54930 in reply to 50692

    Re: KB - Uploader recent changes , SSL,NTLM etc

    Guys,
     
    In the latest build we have a better solution to resolve this issue.
     
    With this new solution, you don't need to configure the FlashUploadPage.
     
    Please download the control and try again.
     
    Keep me posted

    asp.net Chat http://cutesoft.net/ASP.NET+Chat/default.aspx
    Web Messenger: http://cutesoft.net/Web-Messenger/default.aspx
    asp.net wysiwyg editor: http://cutesoft.net/ASP.NET+WYSIWYG+Editor/default.aspx
    asp wysiwyg html editor: http://cutesoft.net/ASP
    asp.net Image Gallery: http://cutesoft.net/ASP.NET+Image+Gallery/default.aspx
    Live Support: http://cutesoft.net/live-support/default.aspx

  •  08-24-2009, 2:12 PM 54979 in reply to 54930

    Re: KB - Uploader recent changes , SSL,NTLM etc

    Adam:
    Guys,
     
    In the latest build we have a better solution to resolve this issue.
     
    With this new solution, you don't need to configure the FlashUploadPage.
     
    Please download the control and try again.
     
    Keep me posted
View as RSS news feed in XML