summaryrefslogtreecommitdiffstats
path: root/public
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2014-06-25 13:34:51 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2014-06-25 13:34:51 +0000
commit1536bde0e4df33d476a167ed568088abd890f77d (patch)
treee9858a47b57021dfccefb6312ce938056bf307c2 /public
parent5f99260cc241d65ee1a936592a83aed1e2d8a162 (diff)
downloadredmine-1536bde0e4df33d476a167ed568088abd890f77d.tar.gz
redmine-1536bde0e4df33d476a167ed568088abd890f77d.zip
fix file upload does not work with Safari (#13932)
Contributed by Felix Schäfer. git-svn-id: http://svn.redmine.org/redmine/trunk@13184 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'public')
-rw-r--r--public/javascripts/attachments.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/public/javascripts/attachments.js b/public/javascripts/attachments.js
index 2cfbe8398..43803ba9c 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();