]> git.mxchange.org Git - friendica.git/blobdiff - mod/wall_attach.php
Merge branch 'master' of https://github.com/friendica/friendica
[friendica.git] / mod / wall_attach.php
index f18fd10b74faf004daeced684628d559de30ee46..ecf4752915f22a85abee826d9534122433a38fcb 100644 (file)
@@ -60,11 +60,9 @@ function wall_attach_post(&$a) {
        }
 
        $filedata = @file_get_contents($src);
-
-       $mimetype = mime_content_type($src);
+       $mimetype = z_mime_content_type($filename);
        $hash = random_string();
        $created = datetime_convert();
-
        $r = q("INSERT INTO `attach` ( `uid`, `hash`, `filename`, `filetype`, `filesize`, `data`, `created`, `edited`, `allow_cid`, `allow_gid`,`deny_cid`, `deny_gid` )
                VALUES ( %d, '%s', '%s', '%s', %d, '%s', '%s', '%s', '%s', '%s', '%s', '%s' ) ",
                intval($page_owner_uid),