Hello, i have searched this forum for a while and i did everything i could imagine to get CKFinder's thumbnailing feature to work, but i failed .
Everything works fine, untill I upload. The upload does work, but then right after having clicked "Upload Selected File", i get 2 JavaScript errors both saying: "Object doesn't support this property or method".
The thumbnail folder is created, but no thumbs. The files show question marks when browsing to the folder images.
I use the ASP version 1.2. I have ASP.NET 2.0 installed on a Windows XP. Any help would really be appreciated. thx
Mon, 04/21/2008 - 19:13
#1
Re: Problem with thumbnails
Does those same errors happen in the demo page? http://www.ckfinder.com/demo
It's very strange to get a javascript error, have you modified anything else besides the config.asp file?
Can you provide a link to test the error?
Re: Problem with thumbnails
I didn't change any code, except for the config.asp file.
I just checked with FF: The message "Error returned in call to Asp.Net" is returned.
I'm pretty sure ASP.NET 2.0 is installed and active on my local IIS.... Any clue?
Re: Problem with thumbnails
Save this file in your ckfinder folder as web.config:
Now load CKFinder, get ready to upload an image, but at that moment edit config.asp and set
Then press the upload button.
Now it should provide the full asp.net error message
Re: Problem with thumbnails
Re: Problem with thumbnails
The only error i see is:
Thank you for helping me with this... I really appreciate.
Re: Problem with thumbnails
Alfonso, do you have any clue?
I was wondering: would it take a major change to switch from "hard"-thumbing (i mean creating separate thumbnails) to "soft"-thumbing (thumbnails created on the fly and flushed to the browser).
I have written such a "soft" thumbnailing-engine for QuickerSite, an open source CMS I develop. It is being used on several occasions (check the QuickerSite demosite on http://demo.quickersite.com/default.asp?iId=JIHMD). It does not nothing but resizing. It does not manipulate files. So no security problems...
Would that be an option?
Re: Problem with thumbnails
I'll try to write later some code to help you debug the problem
Re: Problem with thumbnails
i don't agree on the security issue: there are no manipulations to files in this solution...
I have installed ckfinder on windows 2003: i have exactly the same issues. I made everyone and anything administrator on that machine (local).
Re: Problem with thumbnails
The privacy is again just a point of view: imagine a situation where each user is allowed only to see his pictures, with your live-resizing without any extra check it would be possible to get the thumbnails (and you can request them at big dimensions) of other people's pictures.
About your problem:
open core/connector/asp/loopback.aspx and in line 48 change it to add the name of the tempfile:
Also, in Utils\fileSystem.asp go to line 429 and comment out that line so the temp file isn't deleted
Now try to do the upload again, it should show the name of the file that is being tested as a token, check if that file exists.
If it exists, then it means that the asp.net doesn't have enough priviledges to read that file (although it should have raised an exception and then it could have suggested to use the CKFinderTempPath setting in the config.asp and web.config files.
Re: Problem with thumbnails
i now get:
any idea?
Re: Problem with thumbnails
Alfonso, sorry, deny my previous message, i get another error now:
Re: Problem with thumbnails
I've checked in a winXP installation and I've seen the same problem. As I suggested, I've disabled the deletion of the temp files and I can find them under "C:\WINDOWS\Temp", but the asp.net pages are looking for them in C:\documents and settings\machine\ASPNET\local configuration\temp
so good to have a temp folder in the system!
The solution as I have suggested previously is to use CKFinderTempPath and that way you are sure that both environments are looking at the same place.
Or if you are totally sure that there are no problems about requesting the asp.net pages from anywhere, change the loopback.aspx to
Re: Problem with thumbnails
thx.
Re: Problem with thumbnails
And does the message from asp.net point to that same folder?