Detect mime-type and include the original filename