AnsweredAssumed Answered

Accessing uploaded image from custom script class

Question asked by dthmpsn on Jun 5, 2007
Hi All!

I am looking to validate that an uploaded image has the correct dimensions, if it does not then reject the file.

To do this I have created a custom java class to return the dimensions for any uploaded image. I have added the class as a javascript extension and configured a content rule to fire the script. The issue is how do I provide a local filepath to the java code so that a FileReader class can load the image?

I have looked at transformImage but it does not appear to allow for returned profile information.

Any help would be appreciated,

Thanks,

Dave Thompson

Outcomes