Skip to content
This repository has been archived by the owner on Jul 8, 2020. It is now read-only.

Commit

Permalink
Merge pull request #66 from clochix/master
Browse files Browse the repository at this point in the history
Fix exception on file upload, refs #65
  • Loading branch information
Frank Rousseau committed Apr 1, 2016
2 parents 043c5ec + 0197f68 commit 1cb9018
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions server/controllers/notes.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ module.exports.tree = (req, res) ->
## Attach a file to given note.
###
module.exports.addFile = (req, res) ->
return handleErr res, "no files", 400 unless req.files?
file = req.files["qqfile"] or req.files["file"]
return handleErr res, "no files", 400 unless file?

Expand Down
3 changes: 3 additions & 0 deletions server/controllers/notes.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 1cb9018

Please sign in to comment.