I have a link and, if a user clicks it, I need 2 things to happen:
- A proper HTTP response is sent to the user (especially with
Content-Type: video/mp4
)
- and a video file will automatically begin downloading.
I have seen something of the sort with PHP, but is it possible only with HTML/JavaScript?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…