How does WordPress handle media files?

WordPress stores media in the Media Library, where users can upload, edit, and organize images, videos, and audio. It helps embed and manage media files across the website.