Your browser recognises files that are pdf, images or movies and therefore can preview them in the screen. Any other file type is not recognised by your browser and so becomes a document to download.