mirror of
https://github.com/redmine/redmine.git
synced 2025-11-14 09:16:02 +01:00
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
This commit is contained in:
@@ -117,7 +117,7 @@ function uploadBlob(blob, uploadUrl, attachmentId, options) {
|
|||||||
function addInputFiles(inputEl) {
|
function addInputFiles(inputEl) {
|
||||||
var clearedFileInput = $(inputEl).clone().val('');
|
var clearedFileInput = $(inputEl).clone().val('');
|
||||||
|
|
||||||
if (inputEl.files) {
|
if ('FileReader' in window && inputEl.files) {
|
||||||
// upload files using ajax
|
// upload files using ajax
|
||||||
uploadAndAttachFiles(inputEl.files, inputEl);
|
uploadAndAttachFiles(inputEl.files, inputEl);
|
||||||
$(inputEl).remove();
|
$(inputEl).remove();
|
||||||
|
|||||||
Reference in New Issue
Block a user