문제

I use last flash version version of uploadify. I need to take source image path, from user computer in process of upload, or after upload.

How to do that?

도움이 되었습니까?

해결책

ok its easy! Consider the following HTML as example.

<input type="file" name="file_upload" id="file_upload" />

<img src='' id='myimg' />

you can add onSelect event when initializing and from it you can add source to any img element

$(function() {
    $("#file_upload").uploadify({
    'swf'      : '/uploadify/uploadify.swf',
    'uploader' : '/uploadify/uploadify.php',
    'onSelect' : function(file) {
        $("#myimg").attr('src',file.name);
    }
    });
});

This will update imgae source and your problem will be resolved.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top