Search the Community
Showing results for tags 'mime type'.
Found 1 result
Detecting Mime Types
rklockner posted a topic in PHP Coding HelpI have a scenario where users are downloading files from a legacy system and uploading the files into a new system that I am supporting. Many of the files do not have an extension (most are tiffs). The issue we have is that the new system doesn't know how to open these files (we have them open in a preview window in the new system). I have tried numerous solutions, including finfo_file() and the depreciated mime_content_type() funcitons), but all they seem to return is "application/octet-stream". Thanks.