Active1 year, 2 months ago

i have html file with video and audio file. and i want to links file such as mp3 or mp4 using tag a href and download that file. My video and audio file stored in same folder with my html file.

I have a basic idea of HTML. I want to create the download link in my sample website, but I don't have idea of how to create it. How do I make a link to download a file rather than visit it? Create a Link to a Video File If PowerPoint will not play your movie file either in PowerPoint or in Microsoft Windows Media Player try to create a link to a program that can play the movie file. OFFICE 2003 1. In PowerPoint, display the slide from which you want to play the movie.

  • Free downloads for video files e.g. Mp4, mov, qt (QuickTime), mpg, mpeg, flv, m4v, swf, flash, avi, wma, ogg, webm. Added a new parameter to support the HTML link rel attribute in the download button. Added download tracking option with the Google Analytics plugin. Easy media download is now compatible with WordPress 3.8.
  • How can I create download link in HTML? Ask Question 188. Create download link for music or video. Forcing a file to download. How can I create an Image Download Link in HTML for a Mobile Page? Force download /> to download image instead of opening url link to image.
Video

i have tried this code :

but not downloaded my file, just open a new tab with a play pause controls in the center.

from this question i get to add 'download' to my href tag, but it is for modern browser. How about for old browser?

how i can create a download link for my video/audio in html file and support for all browser (not only for modern browser)?


thanks in advance and sorry for my bad English.

Community
Yohanes AIYohanes AI
1,2985 gold badges33 silver badges65 bronze badges

2 Answers

It depends of your browser settings and plugins however if you are using php you can do a script to download the file like this one:

save it as download.php

then create a link like this one

It should work now, have a nice day.

ELavicountELavicount

You can try this. I've tried it, and it's working for me.

Nisse Engström
4,2299 gold badges22 silver badges37 bronze badges
Emir DupovacEmir Dupovac
5411 gold badge6 silver badges18 bronze badges

Not the answer you're looking for? Browse other questions tagged htmlaudiovideobrowserhref or ask your own question.