From 9831ad515d7963bcfe1f6298a5176fa29bc28f14 Mon Sep 17 00:00:00 2001 From: redmatrix Date: Wed, 6 Apr 2016 18:46:29 -0700 Subject: file sync testing continued --- include/import.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include/import.php') diff --git a/include/import.php b/include/import.php index 83e0a0aa8..332571c27 100644 --- a/include/import.php +++ b/include/import.php @@ -895,6 +895,10 @@ function sync_files($channel,$files) { $newfname = 'store/' . $channel['channel_address'] . '/' . get_attach_binname($att['data']); + unset($att['id']); + $att['aid'] = $channel['channel_account_id']; + $att['uid'] = $channel['channel_id']; + if($att['filetype'] === 'multipart/mixed' && $att['is_dir']) { os_mkdir($newfname, STORAGE_DEFAULT_PERMISSIONS,true); $att['data'] = $newfname; -- cgit v1.2.3