# Help with FileReference.download

**URL:** <https://forum.kirupa.com/t/help-with-filereference-download/164758>\
**Category:** flash\
**Created:** [October 4, 2005, 4:25pm UTC](https://forum.kirupa.com/t/help-with-filereference-download/164758 "2005-10-04T16:25:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![gone2far](https://avatars.discourse-cdn.com/v4/letter/g/9e8a1a/32.png) [@gone2far](https://forum.kirupa.com/u/gone2far)\
**Post date:** [October 4, 2005, 4:25pm UTC](https://forum.kirupa.com/t/help-with-filereference-download/164758/1 "2005-10-04T16:25:52Z")

</div>

With the new FileReference class, is it possible to use a download path pointing to a local file (or from another local drive) rather than one from a remote server to save a file?

e.g:

Instead of:

var url:String = “[http://www.macromedia.com/platform/whitepapers/platform\_overview.pdf](http://www.macromedia.com/platform/whitepapers/platform_overview.pdf)”;

if(!fileRef.download(url, “FlashPlatform.pdf”)) {trace(“dialog box failed to open.”); }

have:

var url:String = “file:///C:/whitepapers/platform\_overview.pdf”;

if(!fileRef.download(url, “FlashPlatform.pdf”)) { trace(“dialog box failed to open.”); }

I dont want to use the regular “getURL” method to open up a browser and then popup a download window rather do everything through the flash player/projector.

Thanks people!
