Customize valiation for image width, height ratio on client side

Last post 07-14-2011, 8:28 PM by Jeff. 1 replies.
Sort Posts: Previous Next
  •  07-14-2011, 12:38 PM 68523

    Customize valiation for image width, height ratio on client side

    Hello everyone,
     
    I need to validate the image's ratio between width and height on client side. I had a look at the document and found out the javascript API. I used the function named CuteWebUI_AjaxUploader_OnSelect(files) which have files as input parameter and look for the right property of the param, but I cant. Can I get the width and height of the selected image for uploading?
     
    Hope for any help.
  •  07-14-2011, 8:28 PM 68525 in reply to 68523

    Re: Customize valiation for image width, height ratio on client side

    Hi chuxuanhy,
     
    The javascript API of AjaxUploader  does not  support getting the uploading image file width and height, you can get FileName and FileSize by it.
     
    Regards,
    Jeff 
View as RSS news feed in XML