This is how the download.php file looks at the moment:
<!doctype html>
<html><head>
<base href="/">
<meta charset="UTF-8">
<title>Download</title>
<script src="dmxAppConnect/dmxAppConnect.js"></script>
</head>
<body is="dmx-app" id="download">
<dmx-serverconnect id="DokumenteDownload" url="dmxConnect/api/Kundenportal/Dokumente/naviDokumenteDownload.php"></dmx-serverconnect>
<?php
header('Content-Type: application/octet-stream');
readfile("../../usr/home/myuser/private/" . $_POST['dbpath'] . "/" . $_POST['']);
?>
</body></html>
I know, that it is not complete, but I can’t figure out how to insert the path and the filename from my query into the php part.