From 38449a23fb4719cf76817e4022de46c4fb807a3f Mon Sep 17 00:00:00 2001 From: Abhinav Adduri Date: Thu, 8 Jun 2017 13:55:19 -0700 Subject: [PATCH] changed to not localhost --- server/portal_server.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/portal_server.js b/server/portal_server.js index b0143722..c580286f 100644 --- a/server/portal_server.js +++ b/server/portal_server.js @@ -127,7 +127,7 @@ app.post('/upload/:id', (req, res, next) => { req.busboy.on('file', (fieldname, file, filename) => { log.info('Uploading:', req.params.id); - const protocol = conf.env === 'development' ? req.protocol : 'https'; + const protocol = !notLocalHost ? req.protocol : 'https'; let url = `${protocol}://${req.get('host')}/download/${req.params.id}/`; storage.set(req.params.id, file, filename, url).then(linkAndID => {