mime_type or ext, not type

This commit is contained in:
Shish 2011-01-01 16:23:00 +00:00
parent 8d978aa06a
commit 07959b1fc8

View File

@ -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,
)
);
}