This commit is contained in:
2025-06-10 14:32:20 +02:00
parent bd07939c3d
commit bb1a237961
8 changed files with 801 additions and 75 deletions

View File

@@ -411,10 +411,24 @@ const breadcrumbItems = computed(() => {
const loadFiles = async (retryCount = 0) => {
loading.value = true;
try {
const response = await $fetch('/api/files/list', {
// Get current user email for email attachments
const user = useDirectusUser();
const userEmail = user.value?.email || '';
const response = await $fetch<{
success: boolean;
files: FileItem[];
count: number;
currentPath: string;
}>('/api/files/list-with-attachments', {
headers: {
'x-tag': '094ut234'
},
params: {
prefix: currentPath.value,
recursive: false,
includeEmailAttachments: true,
userEmail: userEmail
},
timeout: 15000 // 15 second timeout
});