implement file notification on initial upload and rename get_parent_cloudpath() to get_cloud_url() which now includes the filename

This commit is contained in:
git-marijus
2017-07-29 23:32:48 +02:00
parent 7b992decd4
commit 8161ec88e5
5 changed files with 26 additions and 19 deletions

View File

@@ -34,10 +34,10 @@ class File_upload extends \Zotlabs\Web\Controller {
$_REQUEST['deny_gid'] = perms2str($_REQUEST['group_deny']);
if($_REQUEST['filename']) {
$r = attach_mkdir($channel,get_observer_hash(),$_REQUEST);
$r = attach_mkdir($channel, get_observer_hash(), $_REQUEST);
}
else {
$r = attach_store($channel,get_observer_hash(), '', $_REQUEST);
$r = attach_store($channel, get_observer_hash(), '', $_REQUEST);
}
goaway(z_root() . '/' . $_REQUEST['return_url']);