Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Applications > Safari downloads video as .txt?

Safari downloads video as .txt?
Thread Tools
Posting Junkie
Join Date: Jun 2001
Location: Washington DC
Status: Offline
Reply With Quote
Feb 7, 2006, 11:50 AM
 
I have a MPEG-4 encoded video on a web site, and I want to set up a download link for it. But for some reason if I just link to it and then try to download it Safari appends a .txt to the file name. All that needs to be done is to remove that .txt and it'll play just fine in Quicktime, but that's a pain in the ass and really shouldn't be necessary. I've also noticed it will do the same thing with other sorts of files. It likes to append .html to various other files that I have download links to and things like that.

Is there any way to stop it from doing that?
(Last edited by nonhuman; Feb 7, 2006 at 06:07 PM. )
     
Senior User
Join Date: May 2002
Location: Austria
Status: Offline
Reply With Quote
Feb 7, 2006, 12:39 PM
 
That's not Safari's fault. The web server is probably configured wrongly, so that it tells Safari the file is a text file. Safari then adds the .txt extension because it knows that the "text file" would otherwise be opened with Quicktime (and it cannot know that would be right.)

With Apache, e.g., you have to edit the configuration file and add the command:

AddType video/mp4 .mp4

if the file has the .mp4 extension. If you cannot change the configuration of Apache, because it's not your own server, then you can still put the line in a new text file called ".htaccess" and place that text file in the same directory as your video file. (You should call the file "htaccess" first and rename it to ".htaccess" on the server, because Mac OS X doesn't let you rename files to something with a dot at the beginning.)

If your server doesn't run Apache, you should look in the documentation to see how to add mimetypes.
     
Posting Junkie
Join Date: Jun 2001
Location: Washington DC
Status: Offline
Reply With Quote
Feb 7, 2006, 06:06 PM
 
Hmm, that's a pain.

Could that still be the issue even though it doesn't do this in Firefox?
     
Mac Elite
Join Date: Jan 2004
Location: Berkeley, CA
Status: Offline
Reply With Quote
Feb 7, 2006, 06:52 PM
 
I had the exact same issue...Yesterday. Haha. And I did what Tsilou said, except I don't actually run the server, so I went into my webspace's control panel and added mp4 to the list of MIME types to open in QuickTime.
"Give me a lever long enough and a fulcrum on which to place it, and I shall move the world." -Archimedes
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 01:51 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2