ONLYOFFICE 7.0: online forms, password protection in sheets, collaboration improvements and much more
ONLYOFFICE 7.0 released

How to call FileUploader.ashx directly with curl

From github document server code, inside fileuploaderservice.js
Looks like the payload need key as docId, is there an example or document for this api ?

My usage is quite simple.

  1. upload file to FileUploader.ashx and get fileid
  2. use <script type="text/javascript" src="http://localhost/web-apps/apps/api/documents/api.js"></script> and config param to make a READ-ONLY viewer

Hello @shooding,

Unfortunately, we do not have API for this service. We recommend you to use available official guides. Please refer to this page to see how file opening works in ONLYOFFICE Docs:
https://api.onlyoffice.com/editors/open

On the next page you can check out the configuration of editors when it comes to different modes with examples:
https://api.onlyoffice.com/editors/try