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) { String requestedUri, FileTokenProvider fileTokenProvider) {
Path rootFolderPath = Paths.get(fileApiConfiguration.directory()); Path rootFolderPath = Paths.get(fileApiConfiguration.directory());
Path path = null; Path path = null;
try { try {
path = rootFolderPath.resolve("file").resolve(requestedPath.replaceAll("^/*", "")); path = rootFolderPath.resolve("file").resolve(requestedPath.replaceAll("^/*", ""));
} catch (Exception e) { } catch (Exception e) {

View File

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

View File

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