Server side scripts are not encoded so you can adjust server connectors to your needs, e.g inject your function anywhere you need to do this
Example for PHP: in core\connector\php\php5\CommandHandler\FileUpload.php at the end of sendResponse() function you may assume that file has been succesfully uploaded. Its name is stored in $sFileName and full path in $sFilePath. So at the end of sendResponse() add the following line:
saveUploadedToDb($sFilePath);
and in core\connector\php\connector.php remember to include file with definitions of your own functions. By adding only function calls to CKFinder core you'll have less problems with future upgrades.
Re: Can I add some other ops when Uploading files?
Example for PHP: in core\connector\php\php5\CommandHandler\FileUpload.php at the end of sendResponse() function you may assume that file has been succesfully uploaded. Its name is stored in $sFileName and full path in $sFilePath. So at the end of sendResponse() add the following line:
and in core\connector\php\connector.php remember to include file with definitions of your own functions.
By adding only function calls to CKFinder core you'll have less problems with future upgrades.
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+