Hi,
I'm interessted in puchasing files and embed app, so I'm testing it upfront.
First of all the initial situation. I have a working files installation. The index.php of files is in a subfolder of my webserver, the root dir declaration in config.php is a symlink to an other folder on the webserver.
So the directory structure on my webserver looks like this:
webserver-root/
│
├── fotos/
│ ├── _files/
│ │ ├── cache/
│ │ └── config/
│ │ └── config.php
│ └── index.php
│ └── (symlink) ftp-photos -> /var/vsftpd/Upload/Photos
│
├── surveillance.php
└── index.php
config.php looks like this:
return array (
'root' => 'ftp-photos',
//'start_path' => false,
//'username' => '',
...
}
Files app is working perfect with this configuration. I call directly the url '/fotos/index.php'
Now I try to embed the files gallery with the embed app into another website, which is in the webserver's root dir.
See file surveillance.php in the directory structure above.
Important content of surveillance.php is:
`<head>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/embed.photo.gallery@0.0.7/css/embed.min.css">
</head>
<body>
<div class="embed" style="--embed-loader-color:deeppink;--embed-border-radius:3px;--embed-space:7px;--embed-row-size:110px;" data-embed-app="/fotos/index.php" data-embed-dirs="true">
<script src="https://cdn.jsdelivr.net/npm/embed.photo.gallery@0.0.7/js/embed.min.js"></script>
</body>
`
Unfortunately I just get an 'TypeError: a.url_path is undefined' error message.
Firefox debug console shows:
Request
`XHRPOSThttp://ds220.fritz.box/fotos/index.php
[HTTP/1.1 200 OK 6ms]
1
action=files&dir=.
`
Reply:
`XHRPOSThttp://ds220.fritz.box/fotos/index.php
[HTTP/1.1 200 OK 6ms]
1
{"basename":"Photos","fileperms":"0755","filetype":"dir","is_readable":true,"is_writeable":false,"is_link":false,"is_dir":true,"mime":"directory","mtime":1672394877,"path":"","dirsize":null,"files_count":null,"images_count":null,"preview":null,"files":{"000 Upload":{"basename":"000 Upload","fileperms":"0755","filetype":"dir","filesize":false,"is_readable":true,"is_writeable":false,"is_link":false," ...
and all the subfolder I can't post because of sensitive date in the folder names.`
Thanks Bruns