<script type="text/javascript">
$(document).ready(function() {
$('#imgupload').live('change', function() {
$("#imgupload").ajaxSubmit({
success : function(data) {
$('#imgname').val( data );
}
})
});
});
</script>
<input type="hidden" name="imgname" id="imgname" value="" />