Skip to content
Snippets Groups Projects
Commit 4ef09e2d authored by Rasmus Fuhse's avatar Rasmus Fuhse
Browse files

Resolve "Dateien mit großgeschriebener Dateiendung können nicht hochgeladen werden"

Closes #1644

Merge request studip/studip!1057
parent 9d2e5a80
No related branches found
No related tags found
No related merge requests found
...@@ -80,7 +80,7 @@ const Files = { ...@@ -80,7 +80,7 @@ const Files = {
if (file.size > Files.uploadConstraints.file_size) { if (file.size > Files.uploadConstraints.file_size) {
return false; return false;
} }
var ending = file.name.lastIndexOf('.') !== -1 ? file.name.substr(file.name.lastIndexOf('.') + 1) : ''; var ending = file.name.lastIndexOf('.') !== -1 ? file.name.substr(file.name.lastIndexOf('.') + 1).toLowerCase() : '';
if (Files.uploadConstraints.type === 'allow') { if (Files.uploadConstraints.type === 'allow') {
return $.inArray(ending, Files.uploadConstraints.file_types) === -1; return $.inArray(ending, Files.uploadConstraints.file_types) === -1;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment