Revision 13404
Added by Toshi MARUYAMA almost 11 years ago
trunk/public/javascripts/attachments.js | ||
---|---|---|
119 | 119 |
function addInputFiles(inputEl) { |
120 | 120 |
var clearedFileInput = $(inputEl).clone().val(''); |
121 | 121 |
|
122 |
if (inputEl.files) { |
|
122 |
if ($.ajaxSettings.xhr().upload && inputEl.files) {
|
|
123 | 123 |
// upload files using ajax |
124 | 124 |
uploadAndAttachFiles(inputEl.files, inputEl); |
125 | 125 |
$(inputEl).remove(); |
Also available in: Unified diff
stricter check of uploading attachments (#17581)
Contributed by fred bregar.