I record and transcribe meetings. Each meeting goes in a separate directory.
For what it's worth, access to the directories is password protected and I have SSL encryption enabled.
I include a PDF of the transcript and sometimes an audio file, depending on the client.
So my downloads folder and the files within it might be arranged thus:
/download/SmithV.Jones/2013-04-05 Fred Jones deposition.pdf
/download/SmithV.Jones/2013-04-05 Fred Jones deposition.mp3
/download/SmithV.Jones/2013-04-05 Susan Smith deposition.pdf
/download/SmithV.Jones/2013-04-05 Susan Smith deposition.mp3
/download/DoeRey/2013-04-10 Mi Fah statement under oath.pdf
/download/DoeRey/2013-04-10 Mi Fah statement under oath.mp3
The names change for each meeting and for each witness or proceeding. The files and directories remain on my site for a week or so and are replaced by new files in directories with new names.
The type of link I'd like to use is one that changes only the file name in the index.html file in the directory. For instance, in /download/SmithV.Jones/index.html I'd like to have a link that works something like this:
<a href="/zBatch/direct_download.php?file=2013-04-05 Fred Jones deposition.pdf">
<a href="/zBatch/direct_download.php?file=/download/SmithV.Jones/2013-04-05 Fred Jones deposition.pdf">
That way I could just customize the link and insert it into my boilerplate index file.
I want the user to end up with "2013-04-05 Fred Jones deposition.pdf" on their hard drive, not _download_SmithV.Jones_2013-04-05_Fred_Jones_deposition.pdf.
I'm presently using a directive in .htaccess to force download of all pdf and mp3 files, which works perfectly -- except browsers such as Chrome and Firefox work too smoothly and it's not immediately obvious that you've downloaded anything. Nothing appears to happen except a brief flash of a downward-pointing arrow.
So while that works, and while in most cases the people who are using those browsers understand what's going on or are smart enough to grasp it fairly quickly, it's not the user experience I'd prefer. I'd rather have a View (or Listen) link alongside a Download link so that the user can anticipate what's going to happen when they click.
For what it's worth, .htaccess looks like the following:
Header set Content-Disposition attachment
I've done enough macro programming to understand that I probably need to get some quotation marks around the file name, but I'm unable to figure out how -- nor am I entirely sure that's the whole problem.
All help from anyone gratefully accepted!