Browse Source

Fixed upload file extensions

master
Teknikode 7 months ago
parent
commit
58a9fd8bcf
2 changed files with 2 additions and 2 deletions
  1. 1
    1
      Teknik/Scripts/common.js
  2. 1
    1
      Utilities/FileHelper.cs

+ 1
- 1
Teknik/Scripts/common.js View File

@@ -191,7 +191,7 @@ function getFileExtension(fileName) {
ext = "." + a.pop() + ext;
}
} else {
ext = a.pop();
ext = "." + a.pop();
}
// Clear the # and ? characters
ext = ext.split('#')[0];

+ 1
- 1
Utilities/FileHelper.cs View File

@@ -121,7 +121,7 @@ namespace Teknik.Utilities
}
else
{
ext = parts[1];
ext = "." + parts[1];
}

// Strip out invalid parts

Loading…
Cancel
Save