Make sure mission names are lower case

This commit is contained in:
Björn Dahlgren 2014-04-05 19:37:53 +00:00
parent 8ef61ed197
commit 2841f4c9dc

View File

@ -20,7 +20,7 @@ exports.create = function(req, res){
var missionFile = req.files.mission;
fs.readFile(missionFile.path, function (err, data) {
var newPath = config.path + '/mpmissions/' + missionFile.name;
var newPath = config.path + '/mpmissions/' + missionFile.name.toLowerCase();
fs.writeFile(newPath, data, function (err) {
res.json(missionFile);
});