mirror of
https://github.com/meineerde/redmine.git
synced 2025-12-19 15:01:14 +00:00
stricter check of uploading attachments (#17581)
Contributed by fred bregar. git-svn-id: http://svn.redmine.org/redmine/trunk@13404 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
5ccbe10d10
commit
98589f0ecd
@ -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();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user