A Flash Developer Resource Site

Page 2 of 2 FirstFirst 12
Results 21 to 22 of 22

Thread: °°°download link ;-)

  1. #21
    Senior Member
    Join Date
    May 2000
    I'm always after a solution for this problem...
    Thanks to all who keep it alive!
    It's got to be some kind of coding that we all don't know.

  2. #22
    maker of abstract sh*t
    Join Date
    Jul 2003
    i think im quite close to getting it. using this php script:
    header ("Cache-Control: must-revalidate, post-check=0, pre-check=0");
    header ("Content-Type: application/octet-stream");
    header ("Content-Length: " . filesize($theFile));
    header ("Content-Disposition: attachment; filename=$theFileName");

    and using geturl("download.php?theFileName=filename");
    only problem is, i can only force download of files in the same folder as my swf or html! how do i tell wot path it is? if i juz include the path in filename, it downloads the php file not the file i want, OR it downloads a 0 byte file with the name of wot i want!! i think now this is actually quite not a flash problem but pure html/php thing....

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Click Here to Expand Forum to Full Width

HTML5 Development Center