psugand / CodeIgniter-S3

Amazon S3 Library for CodeIgniter
http://prashant.es
241 stars 115 forks source link

Fatal error when using inputFile method #1

Closed kevinsmith closed 13 years ago

kevinsmith commented 13 years ago

Fatal error: Using $this when not in object context in /path_to/application/libraries/S3.php on line 383.

I found that if I change that line to read $input['type'] = self::__getMimeType($input['file']); instead, everything works.

psugand commented 13 years ago

Thanks! I've merged your fork.