I just ran through the install guide and I am able to get the sample version of CKFinder working, specifically standalone.cfm
I would like to take that sample standalone.cfm page and plug it right into my website as it is just how I would like to implement this product.
However when I copy that file into the root of ckfinder, and browse to it I get this error:
The 2 parameter of the Left function, which is now -1, must be a positive integer
The error occurred in C:\Inetpub\wwwroot\serviceticket\ckfinder\standalone.cfm: line 61
59 : <cfscript>
60 : // Calculate basepath for CKFinder. It's in the folder right above _samples
61 : basePath = Left( cgi.script_name, FindNoCase( '_samples', cgi.script_name ) - 1 ) ;
62 :
63 : ckfinder = createObject( "component", "#basePath#ckfinder" ) ;
I have tried to change some of the parameters in the file but it never names a difference. Can someone point me in the right direction?
Is there a guide to setting this up? The developer guide doesn't seem to elaborate.
Thanks.
Brian
I would like to take that sample standalone.cfm page and plug it right into my website as it is just how I would like to implement this product.
However when I copy that file into the root of ckfinder, and browse to it I get this error:
The 2 parameter of the Left function, which is now -1, must be a positive integer
The error occurred in C:\Inetpub\wwwroot\serviceticket\ckfinder\standalone.cfm: line 61
59 : <cfscript>
60 : // Calculate basepath for CKFinder. It's in the folder right above _samples
61 : basePath = Left( cgi.script_name, FindNoCase( '_samples', cgi.script_name ) - 1 ) ;
62 :
63 : ckfinder = createObject( "component", "#basePath#ckfinder" ) ;
I have tried to change some of the parameters in the file but it never names a difference. Can someone point me in the right direction?
Is there a guide to setting this up? The developer guide doesn't seem to elaborate.
Thanks.
Brian