diff options
author | Simon Rettberg | 2016-05-21 15:52:06 +0200 |
---|---|---|
committer | Simon Rettberg | 2016-05-21 15:52:06 +0200 |
commit | 3d34a267c9cc079629ed5a8db8aca5808c7a1506 (patch) | |
tree | cbd71147a24b32b67f62e503ab0ce0126a729113 /inc/taskmanagercallback.inc.php | |
parent | [serversetup-bwlp] Translate usb download; fix attachment name (diff) | |
download | slx-admin-3d34a267c9cc079629ed5a8db8aca5808c7a1506.tar.gz slx-admin-3d34a267c9cc079629ed5a8db8aca5808c7a1506.tar.xz slx-admin-3d34a267c9cc079629ed5a8db8aca5808c7a1506.zip |
[taskmanagercallback] Add imgupload callback
Diffstat (limited to 'inc/taskmanagercallback.inc.php')
-rw-r--r-- | inc/taskmanagercallback.inc.php | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/inc/taskmanagercallback.inc.php b/inc/taskmanagercallback.inc.php index 7d4e79f3..f40db297 100644 --- a/inc/taskmanagercallback.inc.php +++ b/inc/taskmanagercallback.inc.php @@ -174,4 +174,20 @@ class TaskmanagerCallback } } + public static function uploadimg($task) + { + //$string=var_export($task, true); + //file_put_contents('teste.txt',$string); + if (Taskmanager::isFailed($task)){ + EventLog::warning("ApiUpload failed: ", $task['data']['messages']); + } + $ret = Database::exec("UPDATE upload SET is_ready = :ready," . + " path = :path WHERE token = :token", array( + "ready"=>true, + "path"=>$task['data']['path'], + "token"=>$task['data']['token'] + )); + } + + } |