Fix file-upload url bug (#14282)

pull/14294/head
William Reiske 7 years ago committed by Aaron Ogle
parent efbbff91c1
commit 7beb0dfb95
  1. 2
      app/file-upload/server/lib/requests.js

@ -6,7 +6,7 @@ WebApp.connectHandlers.use('/file-upload/', function(req, res, next) {
const match = /^\/([^\/]+)\/(.*)/.exec(req.url);
if (match[1]) {
if (match && match[1]) {
const file = Uploads.findOneById(match[1]);
if (file) {

Loading…
Cancel
Save