|
KB - Uploader recent changes , SSL,NTLM etc
Last post 08-24-2009, 2:12 PM by mdc124. 15 replies.
-
02-03-2009, 1:03 PM |
-
cutechat
-
-
-
Joined on 07-22-2004
-
-
Posts 2,332
-
-
|
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 :
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 ,
And the file will save to the c:\mytemp .
Regards,
Terry
|
|
-
02-16-2009, 11:06 PM |
-
cutechat
-
-
-
Joined on 07-22-2004
-
-
Posts 2,332
-
-
|
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 |
-
razna
-
-
-
Joined on 03-30-2009
-
-
Posts 5
-
-
|
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 |
-
cutechat
-
-
-
Joined on 07-22-2004
-
-
Posts 2,332
-
-
|
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"/>
Regards,
Terry
|
|
-
03-31-2009, 4:26 PM |
-
razna
-
-
-
Joined on 03-30-2009
-
-
Posts 5
-
-
|
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..
- 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.
- 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".
- I have "Enable Anonymous Access" enabled so everything works fine.
- Now I disabled "Enable Anonymous Access" and it prompts me with a dialog for a userid\password when I try to upload.
- 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.
- I created a new folder 'UploadService' and put in a blank file "upload.aspx".
- I went thru IIS under "mywebsiteupload" and verified that the directory 'UploadService' has anonymous access enabled and authorization disabled.
- 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 - I then set the FlashUploadPage to http://mywebsiteUpload/UploadService/Upload.aspx
- At this point I try to upload from http://rvimgcactest/mywebsite/selecting-multiple-files.aspx I get "Flash error- security-errorstring"
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 |
-
cutechat
-
-
-
Joined on 07-22-2004
-
-
Posts 2,332
-
-
|
Re: KB - Uploader recent changes , SSL,NTLM etc
Anzar,
Sorry I misunderstand your previous post.
You can try this :
2. create empty /mywebsite/UploadService/Upload.aspx
4. the xml should be <allow-access-from domain="localhost"/>
Regards,
Terry
|
|
-
04-01-2009, 9:39 AM |
-
razna
-
-
-
Joined on 03-30-2009
-
-
Posts 5
-
-
|
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 |
-
cutechat
-
-
-
Joined on 07-22-2004
-
-
Posts 2,332
-
-
|
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 |
-
razna
-
-
-
Joined on 03-30-2009
-
-
Posts 5
-
-
|
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 |
-
mobbsie
-
-
-
Joined on 10-09-2008
-
-
Posts 24
-
-
|
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 |
-
cutechat
-
-
-
Joined on 07-22-2004
-
-
Posts 2,332
-
-
|
Re: KB - Uploader recent changes , SSL,NTLM etc
Just fixed it . please try again.
Regards, Terry
|
|
-
04-02-2009, 3:14 AM |
-
cutechat
-
-
-
Joined on 07-22-2004
-
-
Posts 2,332
-
-
|
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 |
-
mobbsie
-
-
-
Joined on 10-09-2008
-
-
Posts 24
-
-
|
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 |
-
razna
-
-
-
Joined on 03-30-2009
-
-
Posts 5
-
-
|
Re: KB - Uploader recent changes , SSL,NTLM etc
yeah thats what even I'm thinking..
I was doing this at design time from Visual Studio and setting the property there.. !!
Thanks for all your help.
|
|
-
08-23-2009, 11:26 PM |
-
08-24-2009, 2:12 PM |
-
mdc124
-
-
-
Joined on 08-25-2009
-
-
Posts 2
-
-
|
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
|
|
|
|
|