English 中文(简体)
在 IE9 中未显示大小的文件列表
原标题:FileList not showing size in IE9

I have an Uploader and connected to it a FileList as the documentation recommends. And it is working as expected in Firefox, Chrome. BUT in IE9 there is one User Interface issue. When the tab in which it exists gets created the FileList does not show the size column.

这是已知的问题吗? 它是否应该这样行事? 更具体地说,当文件列表最初在 IE 中显示时,我看到一个大小列的闪烁器,然后它消失了...

问题回答

IE9 不支持 < a href=>" http://www.html5rocks.com/en/tutominals/file/xhr2/" rel=“nofollow” >XMLHtpRequest2 , 因此, Uploader 无法获得所选文件的文件大小, 而对于本案, dojox/form/uploader/FileList.js 中隐藏栏的代码为:

if(!(this._fileSizeAvail = { html5 :1, flash :1}[this.uploader.uploadType])){
    //if uploadType is neither html5 nor flash, file size is not available
    //hide the size header
    this.sizeHeader.style.display="none";
}

答案是是是, 它应该这样行事, 除非你在 IE 中使用 < code> dojox. form. uploader. plugins. flash 插件 。





相关问题
Get Dojo Radio Button Value?

I have an HTML form using dojo and have the following code for a radio button selection choice: dojo.require("dijit.form.RadioButton"); <link href="http://ajax.googleapis.com/ajax/libs/dojo/1....

is it possible to know if a dijit is displayed or not?

i have two divs on a page. each has several dijits. i have atoggle that shows only one div or the other. when i submit the form, i only want to validate the dijits that are in the div that is ...

dijit BorderContainer auto-grow

Is there a way to have a dijit.layout.BorderContainer auto-grow in height? I ve tried setting min-height: 200px; height: auto;, but it won t scale. I ve tried looking at the API, but that thing is a ...

Dojo Tabs as Custom Widgets

I ve created a number of widgets that are loaded as tab panes in a tabcontainer. Everything seems to work well, except I m getting different results when using my custom widgets vs. creating ...

What happened to Dojo DOH?

The Dojo Toolkit used to come with a testing facility called "Doh". It was in the /utils directory. Now when you download dojo-release-1.3.2 the /utils directory is nowhere to be found. Is Doh dead ...

热门标签