<div dir="ltr"><div><div><div><div><div><div><div><div><div><div>Hai everyone,<br></div>I use hook 'post_write' from OC_filesystem to trigger my method 'save'<br></div>In my method i run some process. When the process failed i want the owncloud to display error response like it usually does. example :<br>
</div><br></div>function in owncloud that emit signal 'post_write'<br></div>upload -> error uploading<br></div>create new (file) -> error creating file<br></div>create new (from Link) -> error downloading file<br>
<br></div>I have a problem since all function above give JSON error response differently while i can`t detect which function does run.<br></div>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. <br>
<br></div>Is there a way to give JSON error response that can`t be known by all function or any other way?<br></div>