aboutsummaryrefslogtreecommitdiffstats
path: root/mod/wall_upload.php
diff options
context:
space:
mode:
authorFabio Comuni <fabrix.xm@gmail.com>2012-06-07 20:17:31 +0200
committerFabio Comuni <fabrix.xm@gmail.com>2012-06-07 20:17:31 +0200
commit2438c6e45d47ca194b51f99ddf113112fbb6ccb9 (patch)
tree27c32cdfbaa3a63877b118609b5177c705ff747a /mod/wall_upload.php
parent7cc8c369cb6a01cffb58215966844b53794f32f4 (diff)
downloadvolse-hubzilla-2438c6e45d47ca194b51f99ddf113112fbb6ccb9.tar.gz
volse-hubzilla-2438c6e45d47ca194b51f99ddf113112fbb6ccb9.tar.bz2
volse-hubzilla-2438c6e45d47ca194b51f99ddf113112fbb6ccb9.zip
png support: update database.sql, fix some typos, fix tinymce image browser
Diffstat (limited to 'mod/wall_upload.php')
-rw-r--r--mod/wall_upload.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/mod/wall_upload.php b/mod/wall_upload.php
index 20666e0ef..4b81f8d1c 100644
--- a/mod/wall_upload.php
+++ b/mod/wall_upload.php
@@ -69,7 +69,8 @@ function wall_upload_post(&$a) {
$filesize = intval($_FILES['media']['size']);
$filetype = $_FILES['media']['type'];
}
-
+
+ if ($filetype=="") $filetype=guess_image_type($filename);
$maximagesize = get_config('system','maximagesize');
if(($maximagesize) && ($filesize > $maximagesize)) {