decodeURIComponent for uploaded file/image

This commit is contained in:
barisusakli
2015-03-17 20:19:24 -04:00
parent 60a70e4e62
commit 909fe660a9

View File

@@ -23,7 +23,7 @@ file.saveFileToLocal = function(filename, folder, tempPath, callback) {
is.on('end', function () {
callback(null, {
url: nconf.get('upload_url') + folder + '/' + filename
url: nconf.get('upload_url') + folder + '/' + encodeURIComponent(filename)
});
});