From e23a546f59d789464dcf51b9f0c2bea39b47e390 Mon Sep 17 00:00:00 2001 From: Toshi MARUYAMA Date: Wed, 25 Jun 2014 17:42:34 +0000 Subject: [PATCH] Merged r13184 from trunk to 2.4-stable (#13932) MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Fix file upload does not work with Safari. Contributed by Felix Schäfer. git-svn-id: http://svn.redmine.org/redmine/branches/2.4-stable@13189 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 ab9f89a56..a689c2ef3 100644 --- a/public/javascripts/attachments.js +++ b/public/javascripts/attachments.js @@ -117,7 +117,7 @@ function uploadBlob(blob, uploadUrl, attachmentId, options) { function addInputFiles(inputEl) { var clearedFileInput = $(inputEl).clone().val(''); - if (inputEl.files) { + if ('FileReader' in window && inputEl.files) { // upload files using ajax uploadAndAttachFiles(inputEl.files, inputEl); $(inputEl).remove(); -- 2.39.5