Home
TeamSite
Limiting image size during upload through TinyMCE
alex_assard
Hello,
Is it possible to limit the size of images a user can upload via the TinyMCE editor?
We are using TinyMCE with our Interwoven TeamSite 6.7.2 Service Pack 2 install. Users can access the image plugin to browse to images in the TeamSite directory and insert their selection into a DCT.
Though we are able to determine the image dimensions as we upload the image, we have not had success in determining the file size.
Apart from using MediaBin, do you know of a way we could access the image file size during the upload process?
Thank you for your help.
Find more posts tagged with
Comments
manpreet1
Hi,
Can you please help me by telling me , how to determine the image dimensions as we upload the image.
I need to capture the image dimensions and put validations on that.
TIA
Bhargav Coca
There is nothing OOTB, you need to create a custom plugin as it is tinyMCE and then manage the image credentials. Getting size i.e height and width is easy using javascript, one can use .height and .width on img src to get it.
The main part is to create a plugin ad get it working. You can refer tinyMCE manual to create one.
HTH
Thanks
manpreet1
Thanks for the info.
Can someone provide me a working tinymce plugin.. which i can embed in my code and limit the size of images to be browsed..