Author Topic: Download URL linking to files outside webroot  (Read 2738 times)

0 Members and 1 Guest are viewing this topic.

Offline Ushkand

  • Jr. Member
  • **
  • Posts: 60
    • View Profile
Download URL linking to files outside webroot
« on: May 20, 2003, 12:17:18 AM »
I had originally posted in Troubleshooting but since it requires some kind of MOD to enable this, I am posting it again here in hope of someone helping me with a solution.

Here is my predicament: I am serving video files via the script and disabled server play so that members can only download the files. As these files will be available for paid members only, I'd like to protect them by placing them below the webroot.

I am using the downlaod URL field to tell Download.php where the file is. Everything seems to be working ok, till I try to play the video downloaded this way. For some reason the file seems to be corrupted, even though the size and everything else is the same. I am guessing the file header is getting screwed. How do I fix this so that the videos downloaded from below the webroot play fine? I am serving mostly .AVI files.