Page 1 of 1

Get image size dinamically

Posted: Fri Jun 27, 2014 11:18 am
by infgge00
I would to know the images size (width and height) when I upload them from File Upload Widget.

thanks

Re: Get image size dinamically

Posted: Fri Jun 27, 2014 12:15 pm
by infgge00
Another question: How do I Could delete and uploaded file to IFS from Profound? It´s possible?

Re: Get image size dinamically

Posted: Mon Jun 30, 2014 10:22 am
by Scott Klement
The File Upload widget is a generic tool for uploading files. It can upload any sort of files, and does not know the difference between an image vs any other sort of file. It does not know how to extract an images height/width from the image file itself. You would need software for working with image files in order to get that information. (Or, perhaps you could find a way to get that information on the browser side of things, since browsers have built-in software for displaying certain types of images.)

You can delete files uploaded by Profound UI in the standard way that you would delete any other files from the IFS. The RMVLNK CL command or the unlink() IFS API should work nicely for this.