I have a CKEditor
on different pages of the site, so I settled up the uploads to true
and all the configuration stuff for it to work, and the image upload worked just fine for "Send it to the Server"
tab. But from here I want to intercept or interact with upload
function to be able to upload images not to a folder, but into database with some flags like "page"
where is image uploaded, "category"
, "cropping"
and some another manipulations with them.
So how could it be done to intercept this uploads?
I was curious and I found that the default action for uploads is
/%project_name%/ckeditor/upload.html?CKEditor=textarea_1457018535&CKEditorFuncNum=2&langCode=en
and the action for this uploads is CkeditorUpload.java, but I don't realize how can I use them further.