aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/import.php4
1 files changed, 4 insertions, 0 deletions
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;