Document download failed

Any issues about docs (uploading, editing and etc.)
Post Reply
thedonsolo
Posts: 6
Joined: Fri Jul 22, 2016 1:17 am

Document download failed

Post by thedonsolo » Fri Jul 22, 2016 1:23 am

Hi,

I have an online server where i run ONLYOFFICE document server.
On my local computer I have Apache running and in the /var/www/myfiles some test files.

Whatever I try i get an error: Download Failed

Here is my code:

<html>
<head></head>
<body>
<div id="placeholder"></div>

<script type="text/javascript" src="http://PUBLIC-IP/web-apps/apps/api/docu ... "></script>
<script type="text/javascript">



config = {
"documentType": "text",
"document": {
"fileType": "docx",
"key": "Khirz6zTPdfd7",
"title": "Example Document Title.docx",
"url": "http://onlyoffice.test/demo.docx",
},

};
var docEditor = new DocsAPI.DocEditor("placeholder", config);
</script>
</body>
</html>

What am i doing wrong?!

Dean
Posts: 700
Joined: Tue Sep 30, 2014 11:04 am

Re: Document download failed

Post by Dean » Thu Aug 04, 2016 11:23 am

Hello,

That error means that the URL of the file is unavailable, for instance, the different port is used, or the path to the files is incorrect. Also it may appear that the time on the server is wrong and the URL TTL is over.

Post Reply