Difference between revisions of "Widget:Multi upload"

From cm2.liecourt.com
(Fill database)
Line 31: Line 31:
  
 
function uploadFiles(evt){
 
function uploadFiles(evt){
  evt.classList.add('pending');
 
  evt.disabled = true;
 
 
var files = document.getElementById('files').files;
 
var files = document.getElementById('files').files;
 
var proms = [];  
 
var proms = [];  
Line 94: Line 92:
 
   var filesSelected = document.getElementById("files").files;
 
   var filesSelected = document.getElementById("files").files;
 
     if (filesSelected.length > 0) {
 
     if (filesSelected.length > 0) {
    document.getElementById("imgTest").innerHTML = '';
+
 
 
     for(i = 0; i < filesSelected.length; ++i){
 
     for(i = 0; i < filesSelected.length; ++i){
  

Revision as of 14:07, 23 February 2022


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

{{#widget:Multi upload }}