Small fixes

This commit is contained in:
2022-12-06 13:29:28 +01:00
parent 5b2ad781d2
commit b615e486d6
3 changed files with 6 additions and 1 deletions

View File

@@ -78,6 +78,7 @@ public class FileInfoService {
String requestedUri, FileTokenProvider fileTokenProvider) {
Path rootFolderPath = Paths.get(fileApiConfiguration.directory());
Path path = null;
try {
path = rootFolderPath.resolve("file").resolve(requestedPath.replaceAll("^/*", ""));
} catch (Exception e) {

View File

@@ -24,6 +24,10 @@ quarkus:
token:
refresh-expired: true
# lalafin:
# base_url: <url>
# user_management_url: <url>
api:
file:
directory: /lalafin # Files need to be in {directory}/file

View File

@@ -29,7 +29,7 @@
{#if it_count.mod(3) == 1}
<tr>
{/if}
<td>
<td valign="top">
{#if it.thumbnailUrl}
{#if it.type is 'file'}
{#if it.viewUrl}