Skip to content

Commit

Permalink
fix: Fixed fileExtention property
Browse files Browse the repository at this point in the history
  • Loading branch information
mheggelund committed Nov 8, 2023
1 parent dd16053 commit 3237b73
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/pages/Browse/Browse.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
};

Expand Down

0 comments on commit 3237b73

Please sign in to comment.