They label right now appears to be:
Download Audio File:
Attached File <file_name>.mp3 (<file_size>)
Attached File <file_name>.mp3 (<file_size>)
So when I (and others?) click the <file_name>.mp3 target to hear the attachments that are uploaded, the default action is to stream them through the browser. And worse, the stream duration seems to be inconsistent. Sometimes it would play three seconds. The next pass would be the first second. Etc.
My question is, then, why not add a line similar to
<Directory /www/htdocs/example>
AddType application/octet-stream .mp3
</Directory>
in your Apache httpd.conf file, or even
AddType application/octet-stream .mp3
in the .htaccess file (although, that would give you a performance loss compared to the httpd.conf).
Rather than treating file extensions of .mp3 as audio files (which are streaming through the browser through Quicktime and such), the .mp3 files will be considered binary files (hence application/octet-stream). This would mark the file as requiring an external application to open the file (local media player).
An example would be downloading a .xls file and being prompted to download the file to open in Excel at a later time.
I feel like this would save people time with the "Right Click > Save Target As" along with helping those who are not very familiar with computers. Especially if the fix is potentially a simple one, such as this.
If you're interested, I can provide a link to my personal web hosting where I added the AddType as listed above to my .htaccess file in order to test this before suggesting it.
Thanks.
--While on the subject, adding
ServerSignature Off
should get rid of some information regarding the server's configuration which is visible from the default 404 (File Not Found) page. This doesn't really provide security because there are other tools to detect and best guess a server's signature, but that's one more layer of defense in favor of RD. (Off-topic, I know.)
This post has been edited by koana: May 22, 2010 - 8:13 PM

Help











