From 07959b1fc806855018dc3a73efd79eba71c0854a Mon Sep 17 00:00:00 2001 From: Shish Date: Sat, 1 Jan 2011 16:23:00 +0000 Subject: [PATCH] mime_type or ext, not type --- contrib/amazon_s3/main.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/contrib/amazon_s3/main.php b/contrib/amazon_s3/main.php index 9cfa5a50..741b7378 100644 --- a/contrib/amazon_s3/main.php +++ b/contrib/amazon_s3/main.php @@ -52,8 +52,8 @@ class UploadS3 extends SimpleExtension { S3::ACL_PUBLIC_READ, array(), array( - "Content-Type" => "image/" . $event->image->type, - "Content-Disposition" => "inline; filename=image-" . $event->image->id . "." . $event->image->type, + "Content-Type" => $event->image->get_mime_type(), + "Content-Disposition" => "inline; filename=image-" . $event->image->id . "." . $event->image->ext, ) ); }