Thanks, I'd thought maybe it should have gone into the server side scripting board instead.
Thanks for your reply, I was glad to get confirmation that it is a scripting issue. I conferred briefly with the writer of this and apparently he's had problems getting it to save as the correct file and left it this way, so it has never been working properly, which I find a little shocking as this was paid for. I had downloaded a few download scripts and tried variations of the above code with no luck.
I'd like to take a few stabs and getting it to work as is before we change how the file downloads are handled if possible. The bit of code that is handling this:
Code:
# Get the file to be displayed!
$dd = $form{"dets"} || $firstname;
$fd = $form{"file"} || "$dd.html";
open (FH,"../../cvs/$dd/$fd");
read (FH,$response,10000000);
# See if this is a "download" request ...
if (! $form{"file"}) {
$response =~ s/(<body.*?>)/$1$loader/i;
sendpage($response);
} else {
# print "content-location: $fd\n";
print "content-type: application/octet-stream name=$fd\n\n";
print $response;
}
This script does checking against a file created by Credit Card validation and expires the ability to download after x days, so I can't make a lot of changes else where in the code.
I'm sure I'll be able to find an alternative route to solve this as well if this is a dead end. Thanks so much for taking the time.
