mirror of
https://github.com/redmine/redmine.git
synced 2026-05-07 01:56:12 +02:00
Merged r13404 from trunk to 2.4-stable (#17581)
stricter check of uploading attachments. Contributed by fred bregar. git-svn-id: http://svn.redmine.org/redmine/branches/2.4-stable@13406 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user