This commit is contained in:
Raymond Camden 2017-02-02 09:19:28 -06:00
parent 907f83ac3a
commit ec959d2c38
2 changed files with 3 additions and 3 deletions

View File

@ -85,7 +85,7 @@ exports.upload = function(provider, req, res, options, cb) {
if ('function' === typeof options.getFilename) {
file.originalFilename = file.name;
file.name = options.getFilename(file, req, res);
} else if(options.nameConflict === "makeUnique") {
} else if (options.nameConflict === 'makeUnique') {
file.originalFilename = file.name;
file.name = uuid.v4() + path.extname(file.name);
}