admin管理员组文章数量:1429562
How I can get file in IE(8) like this:
<input id="files" type="file">
<script>
var file = this.files[0]; //(FF, Chrome)
</script>
for uploading?
How I can get file in IE(8) like this:
<input id="files" type="file">
<script>
var file = this.files[0]; //(FF, Chrome)
</script>
for uploading?
Share Improve this question edited Mar 9, 2013 at 3:33 Daniil Ryzhkov 7,6064 gold badges44 silver badges59 bronze badges asked Jun 10, 2011 at 12:55 johnnyjohnny 1,2511 gold badge16 silver badges32 bronze badges 1-
What would this mean? "Get file" is a little vague, and I'm not sure what
[0]
could mean here. – Lightness Races in Orbit Commented Jun 12, 2011 at 18:14
2 Answers
Reset to default 6You can't.
IE8 doesn't support this feature.
Native file input boxes do not have the files
attribute in IE8.
However when the user selects a file its URL bees the value
of the input element, so there is no problem to retrieve it.
本文标签: javascriptHow can I get file from input in IE8Stack Overflow
版权声明:本文标题:javascript - How can I get file from input in IE8? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745445194a2658631.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论