зеркало из https://github.com/nextcloud/server.git
fix file uploads for IE
This commit is contained in:
Родитель
aad62919da
Коммит
917ea58a8c
|
@ -52,7 +52,7 @@ $(document).ready(function() {
|
|||
var oc_current_user=OC.currentUser;
|
||||
if(typeof PlayList==='undefined'){
|
||||
if(typeof localStorage !== 'undefined' && localStorage){
|
||||
if(localStorage.hasOwnProperty(oc_current_user+'oc_playlist_items') && localStorage.getItem(oc_current_user+'oc_playlist_items')!='[]' && localStorage.getItem(oc_current_user+'oc_playlist_active')!='true'){
|
||||
if(localStorage.getItem(oc_current_user+'oc_playlist_items') && localStorage.getItem(oc_current_user+'oc_playlist_items')!='[]' && localStorage.getItem(oc_current_user+'oc_playlist_active')!='true'){
|
||||
loadPlayer();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -163,9 +163,11 @@ $(document).ready(function() {
|
|||
var files=this.files;
|
||||
var target=form.children('iframe');
|
||||
var totalSize=0;
|
||||
if(files){
|
||||
for(var i=0;i<files.length;i++){
|
||||
totalSize+=files[i].size;
|
||||
}
|
||||
}
|
||||
if(totalSize>$('#max_upload').val()){
|
||||
$( "#uploadsize-message" ).dialog({
|
||||
modal: true,
|
||||
|
@ -192,14 +194,21 @@ $(document).ready(function() {
|
|||
});
|
||||
form.submit();
|
||||
var date=new Date();
|
||||
if(files){
|
||||
for(var i=0;i<files.length;i++){
|
||||
if(files[i].size>0){
|
||||
var size=files[i].size;
|
||||
}else{
|
||||
var size=t('files','Pending');
|
||||
}
|
||||
if(files){
|
||||
FileList.addFile(files[i].name,size,date,true);
|
||||
}
|
||||
}
|
||||
}else{
|
||||
var filename=this.value.split('\\').pop(); //ie prepends C:\fakepath\ in front of the filename
|
||||
FileList.addFile(filename,'Pending',date,true);
|
||||
}
|
||||
|
||||
//clone the upload form and hide the new one to allow users to start a new upload while the old one is still uploading
|
||||
var clone=form.clone();
|
||||
|
|
Загрузка…
Ссылка в новой задаче