BasePath = '../../uploads/'; //你要上傳圖片的目錄,找到對應位置即可
$finder->CreateFolder = true;
$finder->ReturnURL = true;
$finder->ReturnPath = true;
$finder->SecureImageUploads = true;
$finder->Run(); //AC流的核心方法,直接使用即可
?>
// Modify this code to skip license validation
/*if ( !file_exists( $ckfinderConfig['licenseFilePath'] ) )
{
header( $_SERVER['SERVER_PROTOCOL'] . ' 401 Unauthorized' );
}
include_once $ckfinderConfig['licenseFilePath'];
if ( !class_exists( 'CKFinderLicense' ) )
{
header( $_SERVER['SERVER_PROTOCOL'] . ' 402 License file error.' );
}
$license = new CKFinderLicense( $ckfinderConfig );
if ( $license->validate() === false )
{
header( $_SERVER['SERVER_PROTOCOL'] . ' 403 License validation failed.' );
}*/