summaryrefslogtreecommitdiffstats
path: root/apps/files/js
diff options
context:
space:
mode:
authorJörn Friedrich Dreyer <jfd@butonic.de>2013-09-06 23:44:40 +0200
committerJörn Friedrich Dreyer <jfd@butonic.de>2013-09-06 23:44:40 +0200
commitce035016460d8285d5511e67b389d494eb78c1ce (patch)
tree30a9a60b0e90622802984a860b050134e3fff430 /apps/files/js
parent673e0c01a79927359319ff15411a33f460d85ac5 (diff)
downloadnextcloud-server-ce035016460d8285d5511e67b389d494eb78c1ce.tar.gz
nextcloud-server-ce035016460d8285d5511e67b389d494eb78c1ce.zip
fine ie8 compatability
Diffstat (limited to 'apps/files/js')
-rw-r--r--apps/files/js/file-upload.js6
1 files changed, 5 insertions, 1 deletions
diff --git a/apps/files/js/file-upload.js b/apps/files/js/file-upload.js
index 47d1188b511..ead397c569e 100644
--- a/apps/files/js/file-upload.js
+++ b/apps/files/js/file-upload.js
@@ -197,7 +197,11 @@ OC.Upload = {
},
onAutorename:function(data){
this.logStatus('autorename', null, data);
- data.data.append('resolution', 'autorename');
+ if (data.data) {
+ data.data.append('resolution', 'autorename');
+ } else {
+ data.formData.push({name:'resolution',value:'autorename'}); //hack for ie8
+ }
data.submit();
},
logStatus:function(caption, e, data) {