# Uploading - onProgress only called if files are big enough

**URL:** https://forum.kirupa.com/t/uploading-onprogress-only-called-if-files-are-big-enough/237250
**Category:** Uncategorized
**Created:** [August 28, 2007, 5:27pm UTC](https://forum.kirupa.com/t/uploading-onprogress-only-called-if-files-are-big-enough/237250 "2007-08-28T17:27:33Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![susancbk](https://avatars.discourse-cdn.com/v4/letter/s/ebca7d/32.png) [@susancbk](https://forum.kirupa.com/u/susancbk)
#### Post date: [August 28, 2007, 5:27pm UTC](https://forum.kirupa.com/t/uploading-onprogress-only-called-if-files-are-big-enough/237250/1 "2007-08-28T17:27:33Z")

</div>

flash help states this about the onProgress listener

> In some cases, onProgress listeners are not invoked; for example, if the file being transmitted is very small, or if the upload or download happens very quickly.

I update a progress bar in my onProgress listener… so if I download files that are too small, my progress bar never changes.

```auto
listener.onProgress = function(file:FileReference, bytesLoaded:Number, bytesTotal:Number):Void {
    progress.mode = "manual";
    progress.setProgress(bytesLoaded, bytesTotal);
    trace("bytesLoaded: " + bytesLoaded + " bytesTotal: " + bytesTotal); 
}

```

How could I fix this?
