       $(".survey-video-upload").on 'click', (e, data) ->
         $(e.target).siblings('.video-upload-error').find('p').remove()
 
-
   # handle errors
   $('.cloudinary-fileupload.survey-video-upload').bind 'fileuploadfail', (e, data) ->
     $(e.target).siblings('.video-upload-error').append "<p> Failed to upload video, please try again</p>"
     $(".survey-video-upload").on 'click', ->
       $(e.target).siblings('.video-upload-error').find('p').remove()
-
 
 # ***** DOCUMENTS *****
 @bindDocumentUploads = ->

        if !emptyPhotoContainer || $($('.photo-upload')[i]).closest('.photo-column').find('.photo-preview-container').html() != ""
          $($('.photo-upload')[i]).removeAttr('data-parsley-required')


  # instantiate cloudinary file upload (direct upload)

  # unbind
  $.cleanData( $('input.cloudinary-fileupload[type=file]') )


    addTexareaForUpload("document", data, docIdx, $documentPreviewContainer)
    if data.result.format != "pdf" && data.result.format != "png" && data.result.format != "jpg"
      $('.document-preview img:last').attr('src', '/assets/file-icon.png')

  # validating upload format. If fomat to supported then handle error
    if data.result.format != undefined
