nodejs: check filename from url

This commit is contained in:
Sergey Linnik
2016-08-04 14:21:27 +03:00
parent eab18cbd1d
commit bb609e67db
3 changed files with 6 additions and 5 deletions

View File

@ -30,7 +30,7 @@ var tempStorageUrl = siteUrl + configServer.get('tempStorageUrl');
var fileUtility = {};
fileUtility.getFileName = function (url, withoutExtension) {
if (!url) return null;
if (!url) return "";
var filename;