From 3237b7350c4a67eb3a58b43cb5888bce2d5e2dda Mon Sep 17 00:00:00 2001 From: mheggelund Date: Wed, 8 Nov 2023 14:23:24 +0100 Subject: [PATCH] fix: Fixed fileExtention property --- src/pages/Browse/Browse.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/pages/Browse/Browse.tsx b/src/pages/Browse/Browse.tsx index ee650441..6fd6df80 100644 --- a/src/pages/Browse/Browse.tsx +++ b/src/pages/Browse/Browse.tsx @@ -88,12 +88,14 @@ export const Browse = () => { if (file === undefined) return; const fileType = UploadFileType.NET_CDF; + const filenameExtention = file.name.split('.').pop(); + const fileExtention = '.' + filenameExtention; const data = { ModelId: id, FileSize: file.size, FileName: file.name, - FileExtension: 'test', + FileExtension: fileExtention, FileType: fileType, };