DocumentServer icon indicating copy to clipboard operation
DocumentServer copied to clipboard

Callback Handle.

Open nguyenvancanh opened this issue 7 years ago • 4 comments

I am working with callback handle as this document. https://api.onlyoffice.com/editors/callback. I use PHP and in config i was setting link this "editorConfig": { "callbackUrl": "https://example.com/url-to-callback.ashx" } .When setting callbackUrl to a file .php. It working normat. But when i use Laravel framework, i want handle callback in a function in controller. (Define a route, and set this url to editorConfig). But it not work, Can you help me. And can you tell the method of callback event (GET or POST). Thanks

nguyenvancanh avatar Aug 01 '18 14:08 nguyenvancanh

Hi, seems this is a really-really old issue and we've missed it, sorry

Could you clarify if you still using our system and if this issue is still actual on the latest stable v7.1.1?

ShockwaveNN avatar Aug 26 '22 09:08 ShockwaveNN

I don't know if someone is currently experiencing something similar, I am currently using ONLYOFFICE version 7.2.1.34 with Laravel 9. The same thing happened to me, with plain PHP the callback worked without problem, but using the Laravel Controllers it didn't work, I saw the error when entering the ONLYOFFICE log (/var/log/onlyoffice/documentserver/docservice/out. log), the problem is if the route should be POST, I was defining it as GET to test from the browser and see if it worked. Perhaps to somebody it serves and it is to make sure that the route of the callback is POST.

Translated with www.DeepL.com/Translator (free version)

carlosmera24 avatar Feb 15 '23 16:02 carlosmera24