I would like CKfinder to, in addition to the fileUrl, return also the image dimensions (if an image was selected) and file size (of any file) to the callback function. Or are there any hint on how to create this functionality; what file(s) and/or function(s) to modify...
Sat, 12/06/2008 - 22:57
#1
Re: feature request: return image dimensions and file size
Feature requests go here: http://dev.fckeditor.net/newticket
Re: feature request: return image dimensions and file size
Re: feature request: return image dimensions and file size
Re: feature request: return image dimensions and file size
Hum... actually sending all those details in the GetFiles command would slow down CKFinder significantly. I think that the correct way to go would be to implement another command in the server connector (e.g. "FileInfo") and return all additional information on demand. So, the SelectFunction should make an ajax call to the connector and ask each time what's the size of the file. Unfortunately, at this moment it is rather impossible to use internal CKFinder code to make such ajax request, so you would have to implement it on your side (there is a similar code in FCKeditor to read the response from the built-in file browser I guess).
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Re: feature request: return image dimensions and file size
The list of arguments passed to the callback function has been extented in CKFinder 1.3, image dimensions are not returned yet, but we have noted this feature reqest.
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+
Re: feature request: return image dimensions and file size
Not available either in 1.3.2, I think this would be nice to have as an option. It would suffice if the filesize of only the selected image would be fetched when selecting it (another last ajax call?).
Re: feature request: return image dimensions and file size
This would be very nice to see implemented!
Does anyone know when this will be possible?
Regards
Re: feature request: return image dimensions and file size
Has this feature been implemented within v2 of CKFinder?
I only really interested in requesting the file size.
Many Thanks
Re: feature request: return image dimensions and file size
Please check the API documentation, you can get the file size:
Wiktor Walc
CTO, CKSource - http://cksource.com
--
Follow CKEditor on: Twitter | Facebook | Google+