XUpload - Chrome and Stop Upload

Message
Author
andrew
Posts: 13
Joined: Sep 23, 2006 10:26 pm

Chrome and Stop Upload

#1 Postby andrew » Mar 07, 2011 5:17 am

Hi,

I've just upgraded to 3.1 Pro.

If you upload with Chrome (under Windows) and hit the "Stop Upload" button the upload progress window closes correctly but the file upload itself does not stop.

You can see this on the demo pages on your site.

Any help appreciated!

Andrew

andrew
Posts: 13
Joined: Sep 23, 2006 10:26 pm

Re: Chrome and Stop Upload

#2 Postby andrew » Mar 07, 2011 1:52 pm

OK.... I believe I have a solution

Chrome passes the following test in xupload.js which we "want" it to fail it so it tries to use the code for IE (which doesn't throw an error but does not work).

Code: Select all

if(!!top.execScript)
I added a test for chrome and then modified the above line to:

Code: Select all

 if(!!top.execScript && !is_chrome)
 {

To be double sure I modified the next test to be:

Code: Select all

else if (!document.all || is_opera || is_chrome)
{
The stop upload button now works in Chrome.

If you have a better solution then please let me know and I will change mine.

Thanks

Andrew
andrew wrote:Hi,

I've just upgraded to 3.1 Pro.

If you upload with Chrome (under Windows) and hit the "Stop Upload" button the upload progress window closes correctly but the file upload itself does not stop.

You can see this on the demo pages on your site.

Any help appreciated!

Andrew