FIXED Image Upload dialog for .net

Looking for help? Ready to help? That's the place to go.

FIXED Image Upload dialog for .net

Postby bianchi007 » Wed Nov 19, 2008 9:44 pm

For those who have the issue where the image upload dialog uploads the image BUT the dialog hangs or stays open...here is what I did to fix it.

This is for the .net assembly 2_6_3. I based it on the help file http://dev.fckeditor.net/attachment/tic ... 2115.patch

Steps:

Open the FredCK.FCKeditorV2.vs2005.csproj in Visual Studio 2005

Open the file FileBrowser > FileWorkerBase.cs

Go to line 119

Replace: Response.Write( @"(function(){var d=document.domain;while (true){try{var A=window.top.opener.document.domain;break;}catch(e) {};d=d.replace(/.*?(?:\.|$)/,'');if (d.length==0) break;try{document.domain=d;}catch (e){break;}}})();" );

Replace with: Response.Write(@"(function(){var d=document.domain;while (true){try{var A=window.parent.OnUploadCompleted;break;}catch(e) {};d=d.replace(/.*?(?:\.|$)/,'');if (d.length==0) break;try{document.domain=d;}catch (e){break;}}})();");

Compile the project and then reference the new dll file in your project.


This worked for me and I hope it helps you. The upload dialog now works on my dev XP and on the Windows Server 2003 website.
bianchi007
 
Posts: 6
Joined: Wed Nov 19, 2008 5:05 am

Re: FIXED Image Upload dialog for .net

Postby ohamilton » Wed Nov 19, 2008 11:00 pm

This worked for me as well. Thanks for sharing the fix.
ohamilton
 
Posts: 3
Joined: Wed Nov 19, 2008 8:19 pm

Re: FIXED Image Upload dialog for .net

Postby dmeeks » Fri Jan 23, 2009 11:52 pm

This also worked for me. Thank you so much. I've been banging my head trying to configure this for asp.net all day!
dmeeks
 
Posts: 1
Joined: Fri Jan 23, 2009 11:51 pm

Re: FIXED Image Upload dialog for .net

Postby dax » Sat Feb 21, 2009 10:56 am

It worked for me too after compiling a new dll! Thanks :-)

My system:
x64 Windows Vista Ultimate
IIS7

To compile the dll I used Visual C# 2008 Express edition. I opened the 2005 project and automatically converted it to a 2008 project and then compiled it without any complaints.
dax
 
Posts: 1
Joined: Sat Feb 21, 2009 10:42 am

Re: FIXED Image Upload dialog for .net

Postby ManishSurolia » Tue May 05, 2009 11:25 am

Hey Dude You ROCK!!!... You know I registered on this forum just to say a big THANKS :D . You saved my day.
ManishSurolia
 
Posts: 1
Joined: Tue May 05, 2009 11:20 am

Re: FIXED Image Upload dialog for .net

Postby vivaitservices » Tue May 26, 2009 6:20 am

That's Awesome, thanks so much for posting that fix.
vivaitservices
 
Posts: 1
Joined: Tue May 26, 2009 6:20 am

Re: FIXED Image Upload dialog for .net

Postby ia.interactive » Wed Jul 08, 2009 9:15 pm

I can't seem to be able to compile in Visual C# 2008 Express? Any help is greatly appreciated!
ia.interactive
 
Posts: 1
Joined: Wed Jul 08, 2009 9:13 pm

Re: FIXED Image Upload dialog for .net

Postby arvindj » Tue Aug 18, 2009 10:53 pm

Hast this been fixed in the new security release 2.6.4.1 or do I have to recompile as its posted here?
Please advice as I have this problem only on the production server, while the test server it works great.
The permission for the image folder remains identical as the test server.
However one more thing i noticed is that the file does gets published but the dialog window wont go away and it says" Permission denied" javascript error.

Do you all suggest i recompile the dll even for the new version?
arvindj
 
Posts: 1
Joined: Tue Aug 18, 2009 10:48 pm

Re: FIXED Image Upload dialog for .net

Postby arunjameskc » Tue Jun 29, 2010 2:45 am

You are a savior ...

Thanks a lot buddy .. you saved us from this mystery... The workaround fixed my issue.. (I was using a custom page to upload to Sharepoint image library rather to the file system)

Cheers !!!
arunjameskc
 
Posts: 1
Joined: Tue Jun 29, 2010 2:39 am


Return to Support

Who is online

Users browsing this forum: No registered users and 2 guests