aboutsummaryrefslogtreecommitdiff
path: root/actions/photos/image/upload.php
diff options
context:
space:
mode:
Diffstat (limited to 'actions/photos/image/upload.php')
-rw-r--r--actions/photos/image/upload.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/actions/photos/image/upload.php b/actions/photos/image/upload.php
index 29df59b63..b917a1598 100644
--- a/actions/photos/image/upload.php
+++ b/actions/photos/image/upload.php
@@ -50,6 +50,8 @@ foreach ($_FILES['images']['name'] as $index => $value) {
continue;
}
+ $mime = tp_upload_get_mimetype($data['name']);
+
$image = new TidypicsImage();
$image->container_guid = $album->getGUID();
$image->setMimeType($mime);