Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
ユーザーにビデオファイルへのリンクをクリックしてもらい、ダイアログボックスを開いてファイルに保存してもらいたいです。ブラウザがQuickTimeやその他のプラグインを開いてビデオを処理することを望んでいません。これはどのように行うことができますか?
JavaScriptだけでこれを行うことはできません。サーバーはContent-Dispositionヘッダーをに設定する必要がありますattachment。たとえば、phpでは次のようなことをしますheader("Content-Disposition:attachment;");
Content-Disposition
attachment
header("Content-Disposition:attachment;");