summaryrefslogtreecommitdiffstats
path: root/public/javascripts/attachments.js
diff options
context:
space:
mode:
Diffstat (limited to 'public/javascripts/attachments.js')
-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 a67ca4a72..318c3c03f 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();