     # Receives `file`, `progress` (percentage 0-100) and `bytesSent`.
     # To get the total number of bytes of the file, use `file.size`
     uploadprogress: (file, progress, bytesSent) ->
-      file.previewElement.querySelector("[data-dz-uploadprogress]").style.width = "#{progress}%"
+      node.style.width = "#{progress}%" for node in file.previewElement.querySelectorAll("[data-dz-uploadprogress]")
 
     # Called whenever the total upload progress gets updated.
     # Called with totalUploadProgress (0-100), totalBytes and totalBytesSent

      file.previewTemplate = file.previewElement # Backwards compatibility

      @previewsContainer.appendChild file.previewElement
      file.previewElement.querySelector("[data-dz-name]").textContent = file.name
      file.previewElement.querySelector("[data-dz-size]").innerHTML = @filesize file.size

      if @options.addRemoveLinks
        file._removeLink = Dropzone.createElement """<a class="dz-remove" href="javascript:undefined;">#{@options.dictRemoveFile}</a>"""

    thumbnail: (file, dataUrl) ->
      file.previewElement.classList.remove "dz-file-preview"
      file.previewElement.classList.add "dz-image-preview"
      for thumbnailElement in file.previewElement.querySelectorAll("[data-dz-thumbnail]")
        thumbnailElement.alt = file.name
        thumbnailElement.src = dataUrl

    
    # Called whenever an error occurs
    # Receives `file` and `message`
    error: (file, message) ->
      file.previewElement.classList.add "dz-error"
      node.textContent = message for node in file.previewElement.querySelectorAll("[data-dz-errormessage]")
    
    errormultiple: noop
    
