Quantcast
Channel: AjaxControlToolkit Work Item Rss Feed
Viewing all articles
Browse latest Browse all 4356

Commented Unassigned: AjaxFileUpload item always display "20 bytes" [27611]

$
0
0
On "Select Files", the list of selected files to be uploaded, always displays file size as "20 bytes".

Correction Requred:
File: [Server/AjaxControlToolkit/AjaxFileUpload/AjaxFileUpload.Item.pre.js](https://ajaxcontroltoolkit.codeplex.com/SourceControl/latest#Server/AjaxControlToolkit/AjaxFileUpload/AjaxFileUpload.Item.pre.js)

```
initUI: function (onRemoveItem) {
var self = this, file = this._inputElementValue,
```

Change to

```
initUI: function (onRemoveItem) {
var self = this, file = (this._inputElementValue.files) ? this._inputElementValue.files[0] : this._inputElementValue,
```

There may be many aspects affected, but change is required as the "files" array has the selected file information correct.
Comments: Please upgrade to the latest version of AJAX Control Toolkit v15.1. If the problem remains, feel free to post a new issue.

Viewing all articles
Browse latest Browse all 4356

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>