Widget:Multi upload: verschil tussen versies

Uit Dorpsbelang Den Hout
Ga naar:navigatie, zoeken
Regel 30: Regel 30:
 
}
 
}
  
function uploadFiles(mode, filename){
+
function uploadFiles(mode){
 
var files = document.getElementById('files').files;
 
var files = document.getElementById('files').files;
 
var proms = [];  
 
var proms = [];  
 
     for(i = 0; i < files.length; ++i){
 
     for(i = 0; i < files.length; ++i){
 
         file = files[i];
 
         file = files[i];
       if(filename){
+
       if(mode == "logo"){
         var fileName = filename;
+
         var fileName = document.querySelector('input[name="Domein"]').value.replace('.','-')+'logo.png';
 
       }else{
 
       }else{
 
         var fileName = files[i].name;
 
         var fileName = files[i].name;

Versie van 18 aug 2020 21:33

Sjabloon:Managed

This is the Widget:Multi upload page. It should be called in the following format:

{{#widget:Multi upload }}