From 98589f0ecda40cf957d2d6fa62c9201737061d21 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Sun, 14 Sep 2014 13:44:24 +0000 Subject: [PATCH] stricter check of uploading attachments (#17581) Contributed by fred bregar. git-svn-id: http://svn.redmine.org/redmine/trunk@13404 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- public/javascripts/attachments.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/javascripts/attachments.js b/public/javascripts/attachments.js index 229235f83..f80098665 100644 --- a/public/javascripts/attachments.js +++ b/public/javascripts/attachments.js @@ -119,7 +119,7 @@ function uploadBlob(blob, uploadUrl, attachmentId, options) { function addInputFiles(inputEl) { var clearedFileInput = $(inputEl).clone().val(''); - if (inputEl.files) { + if ($.ajaxSettings.xhr().upload && inputEl.files) { // upload files using ajax uploadAndAttachFiles(inputEl.files, inputEl); $(inputEl).remove(); -- 2.39.5