trevoirwilliams
trevoirwilliams

Reputation: 478

mime_content_type() support in php

I am trying to install an instance of forma.lms on WAMP Server running on Windows 8 (not sure how relevant the OS might be).

As with most PHP frameworks, there is a checklist in the installation process which displays a green affirmation for all the present required features. I have one red rejection in the form of mime_content_type() support: OFF

I checked my wamp settings and looked in the listed php and apache features and neither had any mime feature that was either not ticked or applicable to the missing module.

What pray tell, might I do to free this up?

Thanks in advance

Upvotes: 1

Views: 3234

Answers (1)

pearpages
pearpages

Reputation: 22027

The mime_content_type error is due to it not being available in your PHP build (it has been deprecated for some time now). But you could create that function yourself: http://php.net/mime_content_type

If you are using the latest version of the class, you can also override the mime type by passing 'Content-Type' => 'your-mime-type' to putObject()'s $requestHeaders. See: https://github.com/tpyo/amazon-s3-php-class#uploading-objects

There is an update in the works to allow custom mime lookup callbacks too.

Upvotes: 1

Related Questions