This is driving me crazy!
What I'm wanting to do is resize an image when it is uploaded. That in itself is no problem and I've modified code in .../filemanager/upload/php/upload.php to achieve this. I've also added extensive dubugging info (writing a file to the upload area) and it works fine when I use the page .../filemanager/upload/test.html, selecting php as the uploader to use.
I've also added debug code to .../filemanager/browser/commands.php and .../filemanager/browser/connector.php in the hope of getting some information.
The problem is that when I use the 'upload image' icon on the toolbar, an image is uploaded but the resizing is not performed and none of my debugging gets displayed so I assume that it's not going through any of the above mentioned modules.
What am I doing wrong? Is it using a different method to upload and if so how do I correct it?
In fckconfig.js I have
var _FileBrowserLanguage = 'php' ;
var _QuickUploadLanguage = 'php' ;
Please help!
What I'm wanting to do is resize an image when it is uploaded. That in itself is no problem and I've modified code in .../filemanager/upload/php/upload.php to achieve this. I've also added extensive dubugging info (writing a file to the upload area) and it works fine when I use the page .../filemanager/upload/test.html, selecting php as the uploader to use.
I've also added debug code to .../filemanager/browser/commands.php and .../filemanager/browser/connector.php in the hope of getting some information.
The problem is that when I use the 'upload image' icon on the toolbar, an image is uploaded but the resizing is not performed and none of my debugging gets displayed so I assume that it's not going through any of the above mentioned modules.
What am I doing wrong? Is it using a different method to upload and if so how do I correct it?
In fckconfig.js I have
var _FileBrowserLanguage = 'php' ;
var _QuickUploadLanguage = 'php' ;
Please help!
RE: Resizing image in upload
RE: Resizing image in upload
Maybe I'll need to move the app to a different server just so I can find out what's going on!
Perhaps trying to find out what dialog is being used would provide a better debugging opportunity.
RE: Resizing image in upload
The default image dialog is editor/dialog/fck_image.html you can try to add some text to check that's the one that you are using and then adjust the code to popup an alert.
Or if you are using Firefox, use the document Inspector or better: Firebug to read the content of the page.
RE: Resizing image in upload
RE: Resizing image in upload
to Brett: I'm using the quick upload and checking through the logic again, I've found my silly mistake! I'd pointed the ImageUploadURL at my own version of upload.php but was trying to debug the original module. Doh!