Skip to content Skip to sidebar Skip to footer

Get Width Of Uploaded Image When Upload Complete Using UPLOADIFY Plugin

I want to get the width of an image when upload complete in uploadify and then make make the proportion correct with the previous one before upload FOCUS: get the WIDTH of the uplo

Solution 1:

//when all files finished uploading

'onAllComplete' : function(event,data) {
      alert("action");
    }

//when a file gets uploaded

'onComplete'  : function(event, ID, fileObj, response, data) {
      alert('There are ' + data.fileCount + ' files remaining in the queue.');
    }

try

$("#imgID").css("width");

or

$("#imgID").width()

it will look like

$('#file_upload').uploadify({
$imgThis=$(this);
alert($imgThis.width());
'onComplete'  : function(event, ID, fileObj, response, data) {

        }
});

Post a Comment for "Get Width Of Uploaded Image When Upload Complete Using UPLOADIFY Plugin"