mirror of
https://git.teknik.io/Teknikode/Teknik.git
synced 2023-08-02 14:16:22 +02:00
Fixed upload file extensions
This commit is contained in:
parent
35786f1855
commit
58a9fd8bcf
@ -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];
|
||||
|
@ -121,7 +121,7 @@ namespace Teknik.Utilities
|
||||
}
|
||||
else
|
||||
{
|
||||
ext = parts[1];
|
||||
ext = "." + parts[1];
|
||||
}
|
||||
|
||||
// Strip out invalid parts
|
||||
|
Loading…
Reference in New Issue
Block a user