# Download from server

**URL:** <https://forum.kirupa.com/t/download-from-server/294106>\
**Category:** flash\
**Created:** [August 8, 2009, 3:22pm UTC](https://forum.kirupa.com/t/download-from-server/294106 "2009-08-08T15:22:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Qbe](https://avatars.discourse-cdn.com/v4/letter/q/45deac/32.png) [@Qbe](https://forum.kirupa.com/u/Qbe)\
**Post date:** [August 8, 2009, 3:22pm UTC](https://forum.kirupa.com/t/download-from-server/294106/1 "2009-08-08T15:22:58Z")

</div>

Hi

I have a problem.

What I want to do:  
I Want to download a filer from the server of my website to the harddrive of my computor.

What happends:  
When I press the button a dialogbox pops up. It allows me to name the file and say where I want it. Just as it is supposed to. But the file takes just a second to download and the size is too small.

One of my files i 11 Mb but the file on my harddrive is just 800 k.

I found the following link:  
[http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/net/FileReference.html#download(](http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/net/FileReference.html#download%28))

So I copied the code in the exempel under the “download() metod” just to get it to work.

But it don’t work.

This is the trace resoult:

“selectHandler: name=061\_I3\_021706\_jpod101.mp3 URL=HTTP://www.myWebsite.com/SWF/Downloadable/BibleReadings/  
openHandler: [Event type=“open” bubbles=false cancelable=false eventPhase=2]  
progressHandler name=061\_I3\_021706\_jpod101.mp3 bytesLoaded=986 bytesTotal=2147483647  
completeHandler: [Event type=“complete” bubbles=false cancelable=false eventPhase=2]”

Everyting is correct, but it still do not work.

What am I doing wrong?

NOTE: I am using FlashDevelop to program the site, not Flash or Flex.
