mirror of
https://github.com/Dahlgren/arma-server-web-admin.git
synced 2024-08-30 17:22:10 +00:00
Make sure mission names are lower case
This commit is contained in:
parent
8ef61ed197
commit
2841f4c9dc
@ -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);
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user