diff options
author | Houssam Haidar <houssam@sdelements.com> | 2015-02-04 01:28:05 -0500 |
---|---|---|
committer | Houssam Haidar <houssam@sdelements.com> | 2015-02-04 01:28:05 -0500 |
commit | 946a9d5234fe085e9f87805e6eb63224cf8c935c (patch) | |
tree | 9ffdbdeec893f0d113ce2148432bc180850e7dc2 /app/controllers/files.js | |
parent | 6578e1aa912a029bce41967b66b562670865a5fb (diff) | |
download | lets-chat-946a9d5234fe085e9f87805e6eb63224cf8c935c.zip lets-chat-946a9d5234fe085e9f87805e6eb63224cf8c935c.tar.gz lets-chat-946a9d5234fe085e9f87805e6eb63224cf8c935c.tar.bz2 |
Switch to dropzone and make uploads actually work
Diffstat (limited to 'app/controllers/files.js')
-rw-r--r-- | app/controllers/files.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/controllers/files.js b/app/controllers/files.js index 7d7057e..6c2a575 100644 --- a/app/controllers/files.js +++ b/app/controllers/files.js @@ -84,7 +84,8 @@ module.exports = function() { var options = {
owner: req.user._id,
room: req.param('room'),
- file: req.files.file
+ file: req.files.file,
+ post: req.param('post') && true
};
core.files.create(options, function(err, file) {
|