From 4a071b9a1cac32ed331a9a4e76d8a6c9aa312bef Mon Sep 17 00:00:00 2001 From: git-marijus Date: Sun, 30 Jul 2017 19:21:02 +0200 Subject: ltrim $display_path in attach_store() to be consistent with attach_mkdir() and go to created folder after successfully creating one --- Zotlabs/Module/File_upload.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Zotlabs/Module') diff --git a/Zotlabs/Module/File_upload.php b/Zotlabs/Module/File_upload.php index f036d3f43..bce81ad7a 100644 --- a/Zotlabs/Module/File_upload.php +++ b/Zotlabs/Module/File_upload.php @@ -35,6 +35,8 @@ class File_upload extends \Zotlabs\Web\Controller { if($_REQUEST['filename']) { $r = attach_mkdir($channel, get_observer_hash(), $_REQUEST); + if($r['success']) + goaway(z_root() . '/cloud/' . $channel['channel_address'] . '/' . $r['data']['display_path']); } else { $r = attach_store($channel, get_observer_hash(), '', $_REQUEST); -- cgit v1.2.3