Allow users to download flv file

This is a discussion on "Allow users to download flv file" within the Flash & Multimedia Forum section. This forum, and the thread "Allow users to download flv file are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Flash & Multimedia Forum

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Jan 28th, 2008, 20:40
Junior Member
Join Date: Jan 2006
Location: Newport, UK
Age: 18
Posts: 35
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to @lun
Allow users to download flv file

I want to allow users to download flv files, but when I link to the file the browser tries to load it, and a ton of what looks like gibberish is displayed. Is there a way to force the download dialog to appear? I don't really want to have to instruct every user to right click the link and click 'save as'.

Cheers @lun
Reply With Quote

  #2 (permalink)  
Old Jan 29th, 2008, 04:44
saltedm8's Avatar
Lead Administrator

SuperMember
Join Date: Nov 2005
Location: Always About
Age: 27
Posts: 1,281
Blog Entries: 1
Thanks: 1
Thanked 6 Times in 6 Posts
Re: Allow users to download flv file

save it as a zip file, then upload it to your server, that way all they have to do is extract it
__________________
My Recipe forum...don't click here
Last Blog Entry: Basic Advice for newbies (Feb 1st, 2008)
Reply With Quote
  #3 (permalink)  
Old Jan 29th, 2008, 06:13
Junior Member
Join Date: Jan 2006
Location: Newport, UK
Age: 18
Posts: 35
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to @lun
Re: Allow users to download flv file

The problem with zipping it up is that the flv file is used by a flash player on the site, so I don't really want to have to have the two versions of the files (zipped and unzipped) if it can be avoided.
Reply With Quote
  #4 (permalink)  
Old Jan 29th, 2008, 17:11
saltedm8's Avatar
Lead Administrator

SuperMember
Join Date: Nov 2005
Location: Always About
Age: 27
Posts: 1,281
Blog Entries: 1
Thanks: 1
Thanked 6 Times in 6 Posts
Re: Allow users to download flv file

the problem is, you cannot download a flv without executing it, so zipping it is your only option as far as i can see

the reason you are seeing nothing but 'gibberish', is because it is problely trying to load in windows media player ( or something alike ) which obviously does not support flv files
__________________
My Recipe forum...don't click here
Last Blog Entry: Basic Advice for newbies (Feb 1st, 2008)
Reply With Quote
  #5 (permalink)  
Old Jan 29th, 2008, 17:33
Junior Member
Join Date: Jan 2006
Location: Newport, UK
Age: 18
Posts: 35
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to @lun
Re: Allow users to download flv file

I found a way, you just need to add this to a .htaccess file:
Code: Select all
AddHandler application/octet-stream .flv
It's supposed to work for pretty much any file that you want to 'force' users to download, instead of showing it in the browser.

Cheers anyway
Reply With Quote
Reply

Thread Tools

Posting 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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Download button - to download a PDF file attila001122 Web Page Design 3 Dec 9th, 2007 16:09
file download help acrikey Web Page Design 7 Aug 23rd, 2007 00:11
PHP file download script sabatier PHP Forum 2 Aug 14th, 2007 11:43
File Download nileshnaik JavaScript Forum 1 Nov 27th, 2006 16:13
Text file download harlekin Classic ASP 2 Dec 5th, 2005 18:23


All times are GMT. The time now is 20:07.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43