<formaction="upload"enctype="multipart/form-data"method="post">

    Upload image:
    <inputid="image-file"type="file"name="file"/><inputtype="submit"value="Upload"/><scripttype="text/javascript">
        $('#image-file').bind('change',function(){
            alert('This file size is: '+this.files[0].size/1024/1024+"MB");});</script></form>


http://stackoverflow.com/questions/3717793/javascript-file-upload-size-validation
arrow
arrow
    全站熱搜
    創作者介紹
    創作者 amychang2014 的頭像
    amychang2014

    工作需要筆記

    amychang2014 發表在 痞客邦 留言(0) 人氣()