       '/corrections/upload'
       '#upload-bulk-correction-uploadButton-call'
       () ->
-        alert("Success")
       () ->
-        alert("file changed")
       'upload-bulk-correction-hidden'
       )
 

      if permissionElement == null || $(permissionElement).is(":checked")
        #Upload blob
        i=0
        for f in fileInput.files
          formData = new FormData()
          formData.append("file", f, f.name)
          xhr = new XMLHttpRequest()
          xhr.open('POST', endpoint, true)
          xhr.onload =  () ->
            if (xhr.status == 200)
              i++
              uploadedFiles.push JSON.parse(xhr.responseText)
              if  i == (fileInput.files.length)
                if successCallback != undefined 
                  successCallback()
                $(progressBarElement).text(
                  $(progressBarElement).data 'tr-success'
                )
                hiddenInput.value = JSON.stringify uploadedFiles
                $(progressBarElement)
                    .removeClass('btn-primary')
                    .addClass 'btn-outline-secondary'
            else
              alert(
                $(progressBarElement).data('tr-failure')
                + xhr.responseText
              )
          xhr.onerror = (e) ->
            alert(
              $(progressBarElement).data('tr-failure')
            )
          xhr.upload.onprogress = (e) ->
            percentUpload = Math.floor(100/fileInput.files.length * e.loaded / e.total+100*(i)/fileInput.files.length)
            $(progressBarElement).text(percentUpload+" %")
            return
          xhr.send formData
      else
        alert(
          $(progressBarElement).data 'tr-missing-consent'

    merged = undefined
    files = []
    filez= []
    

    uploadedFiles = []
    progressOptimize = 0
    $(uploadStatusElement).hide()
