[Owncloud] Hook response

basari ari basariofficial at gmail.com
Tue Jan 7 19:11:23 UTC 2014


Hai everyone,
I use hook 'post_write' from OC_filesystem to trigger my method 'save'
In my method i run some process. When the process failed i want the
owncloud to display error response like it usually does. example :

function in owncloud that emit signal 'post_write'
upload -> error uploading
create new (file) -> error creating file
create new (from Link) -> error downloading file

I have a problem since all function above give JSON error response
differently while i can`t detect which function does run.
I try use JSON error reponse from function upload, but the format can`t be
known by function create new (from Link) and turns out error.

Is there a way to give JSON error response that can`t be known by all
function or any other way?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/owncloud/attachments/20140108/8991dc2c/attachment.html>


More information about the Owncloud mailing list