tattersoftware / codeigniter4-files

File uploads and management, for CodeIgniter 4
MIT License
61 stars 16 forks source link

Improve extension handling #32

Closed MGatner closed 3 years ago

MGatner commented 3 years ago

Relying on MIME detection is too likely to return the "catch all" type (application/octet-stream) which in turn causes files to be identified as .bin when reversing the process. This PR gives client extensions a little more credibility when faced with these generics.