Yes, Ian - I think you are right. When I click the download icon it appears to come from your web server, not your media server.
Now the question is, why?
There is some code in the download function that may do this - honestly, I am not an expert on this - this code was taken and adapted from docman I think.
$user_agent = (isset($_SERVER["HTTP_USER_AGENT"]) ) ? $_SERVER["HTTP_USER_AGENT"] : $HTTP_USER_AGENT;
I wonder if that changes the user agent to your web server, not your media server.
Basically then this is the download command:
$url = $download_file;
$ch = curl_init();
curl_setopt($ch, CURLOPT_FILE, $out);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_URL, $url);
curl_exec($ch);
We've not run into this problem before - I too have my media files on a different server. The church is at
www.CalvaryChapelNewberg.org but the media comes from
www.CalvaryChapelNewberg.net which is a GoDaddy server that doesn't have bandwidth problems.
I'm starting to wonder if the same thing happens with my downloads too since the file seems to be coming from the .org site, not the .net site in the download dialogue box.
I think Eugen, one of our developers might be better at answering this question - I believe he will be copied on this thread.
Tom