From 2a679b1164207ee983a26cb6d06fef10d4b81bb0 Mon Sep 17 00:00:00 2001 From: Friendika Date: Wed, 25 May 2011 02:08:15 -0700 Subject: file attachments --- mod/wall_attach.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'mod/wall_attach.php') diff --git a/mod/wall_attach.php b/mod/wall_attach.php index b539171cf..f18fd10b7 100644 --- a/mod/wall_attach.php +++ b/mod/wall_attach.php @@ -64,11 +64,12 @@ function wall_attach_post(&$a) { $mimetype = mime_content_type($src); $hash = random_string(); $created = datetime_convert(); -dbg(1); - $r = q("INSERT INTO `attach` ( `uid`, `hash`, `filetype`, `filesize`, `data`, `created`, `edited`, `allow_cid`, `allow_gid`,`deny_cid`, `deny_gid` ) - VALUES ( %d, '%s', '%s', %d, '%s', '%s', '%s', '%s', '%s', '%s', '%s' ) ", + + $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), dbesc($hash), + dbesc($filename), dbesc($mimetype), intval($filesize), dbesc($filedata), -- cgit v1.2.3