# FileReference.download must take absolute URL (not relative)?

**URL:** <https://forum.kirupa.com/t/filereference-download-must-take-absolute-url-not-relative/215687>\
**Category:** Uncategorized\
**Created:** [February 9, 2007, 12:17pm UTC](https://forum.kirupa.com/t/filereference-download-must-take-absolute-url-not-relative/215687 "2007-02-09T12:17:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ayman](https://avatars.discourse-cdn.com/v4/letter/a/dec6dc/32.png) [@Ayman](https://forum.kirupa.com/u/Ayman)\
**Post date:** [February 9, 2007, 12:17pm UTC](https://forum.kirupa.com/t/filereference-download-must-take-absolute-url-not-relative/215687/1 "2007-02-09T12:17:53Z")

</div>

Im using this code

```auto
var fileRef:FileReference = new FileReference();
  fileRef.addListener(listener);
  var [url:String = "[URL="http://www.macromedia.com/pladfghfgh"]images/img1.jp](http://www.kirupa.com/forum/String)g";
  fileRef.download(url, "image.jpg")

```

However, it doesn’t work. It works when I put the full absolute address, instead of simply “images/img1.jpg” . Is there any way to use a relative address?!?!? Probably attach the relative address to the URL property ??

Thanks!
