diff --git a/server/server.js b/server/server.js index 294cb78a..ed4ab692 100644 --- a/server/server.js +++ b/server/server.js @@ -191,8 +191,8 @@ app.post('/upload', (req, res, next) => { if ( !meta.hasOwnProperty('aad') || !meta.hasOwnProperty('id') || - !meta.hasOwnProperty('filename' || - !validateIV(meta.id)) + !meta.hasOwnProperty('filename') || + !validateIV(meta.id) ) { res.sendStatus(404); return;