brendo / bulkimporter

A Symphony extension to allow the bulk uploading of data
6 stars 1 forks source link

Patch bulkimporter for servers without mime_content_type() function. #4

Closed ahwayakchih closed 13 years ago

ahwayakchih commented 13 years ago

Implement mime_content_type() function if one does not exist yet. This will make bulkimporter work on servers which have PHP without that function. This implementation has some basic file extension to MIME type mapping, and returns 'application/octet-stream' by default (if no matching extension can be found).