Merge pull request #5262 from owncloud/files-ie8-conflictdialogbrokenfix

Fixed conflict dialog in IE8
remotes/origin/stable6
Morris Jobke 12 years ago
commit a132144eca
  1. 6
      apps/files/js/file-upload.js
  2. 2
      core/js/oc-dialogs.js

@ -124,7 +124,11 @@ OC.Upload = {
*/
onReplace:function(data){
this.log('replace', null, data);
data.data.append('resolution', 'replace');
if (data.data){
data.data.append('resolution', 'replace');
} else {
data.formData.push({name:'resolution',value:'replace'}); //hack for ie8
}
data.submit();
},
/**

@ -234,7 +234,7 @@ var OCdialogs = {
var getCroppedPreview = function(file) {
var deferred = new $.Deferred();
// Only process image files.
var type = file.type.split('/').shift();
var type = file.type && file.type.split('/').shift();
if (window.FileReader && type === 'image') {
var reader = new FileReader();
reader.onload = function (e) {

Loading…
Cancel
Save