Added a fix for files with spaces.

This commit is contained in:
Scott Erickson 2014-03-03 17:03:02 -08:00
parent 1b257252f9
commit 881ec1a4b3

View file

@ -13,6 +13,7 @@ module.exports.setup = (app) ->
fileGet = (req, res) ->
path = req.path[6..]
path = decodeURI path
isFolder = false
try
objectId = mongoose.Types.ObjectId(path)