       else
         # display error message if  detects wrong mime type
         alert('Falscher MIME-Typ:' + data.metadata.mime_type)
+        $("#video-uploadButton-button-actual").text "Falscher MIME-Typ:" + data.metadata.mime_type
       return
     null
     'upload-video-hidden'

    '/videos/upload'
    "#video-uploadButton-button-actual"
    (data)->
      console.log data
      data = JSON.parse data.response
      $('#video-wait').hide()
      if data.metadata.mime_type in ['video/mp4']

        $('#image-none').hide()
      else
        alert('Falscher MIME-Typ:' + data.metadata.mime_type)
        $("#image-uploadButton-button-actual").text "Falscher MIME-Typ:" + data.metadata.mime_type
        
    null
    'upload-image-hidden'
    true
