#7229 download file #833

Merged
jorgep merged 10 commits from 7229-fixDownloadFile into dev 2024-11-22 09:34:32 +00:00
1 changed files with 1 additions and 1 deletions
Showing only changes of commit ad93e16896 - Show all commits

View File

@ -9,7 +9,7 @@ const token = getTokenMultimedia();
export async function downloadFile(id, model = 'dms', urlPath = '/downloadFile', url) {
const appUrl = (await getUrl('', 'lilium')).replace('/#/', '');
const response = await axios.get(
url ?? `${appUrl}/${model}/${id}${urlPath}?access_token=${token}`,
url ?? `${appUrl}/api/${model}/${id}${urlPath}?access_token=${token}`,
{ responseType: 'blob' }
);