Page 1 of 1

Problem with .mp4 files

PostPosted: 08. April 2019 00:29
by Apochedio
Good morning,

I have a problem with XAMPP displaying ".mp4" files.
The problem is that instead of having them displayed, it downloads them automatically. How can I make the ".mp4" files appear and not download?

Thank you very much

Re: Problem with .mp4 files

PostPosted: 09. April 2019 01:55
by Nobbie
Xampp neither displays .mp4 nor downloads .mp4 files, that is your browser who does so. Xampp, i.e. Apache is the server and applys the file to the browser. The browser decides about downloads or showing.

If you want an .mp4 file to be displayed by the browser, you should use the HTML5 "video" Tag for it, See https://www.w3schools.com/tags/tag_video.asp for documentation

Re: Problem with .mp4 files

PostPosted: 01. January 2024 21:24
by Aditya k
It sounds like you're dealing with a common issue where XAMPP is set up to download .mp4 files instead of displaying them. This is usually a config thing. In your XAMPP's .htaccess file, try adding AddType video/mp4 .mp4. This line tells your server that .mp4 files are videos, not just files to be downloaded.