close
<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
全站熱搜
留言列表