     else
       photoIdx = imgCount + 1
 
-    console.log photoIdx + " photo"
-
     $(e.target).siblings('.progress').find('.photo-progress-bar').removeAttr("style")
     $(e.target).siblings('.progress').addClass('hidden')
 
     $photoPreviewContainer = $(e.target).siblings('.photo-preview-container')
     $photoPreviewContainer.append "<div class='photo-preview'>" + $.cloudinary.image(data.result.public_id, format: data.result.format, version: data.result.version, crop: 'fill', width: 350).prop('outerHTML') + "</div>"
     addTexareaForUpload("photo", data, photoIdx, $photoPreviewContainer)
-
 
   # handle errors
   $('.cloudinary-fileupload.survey-photo-upload').bind 'fileuploadfail', (e, data) ->

    else
      videoIdx = vidCount + 1

    console.log videoIdx + " video"
    $(e.target).siblings('.progress').find('.video-progress-bar').removeAttr("style")
    $(e.target).siblings('.progress').addClass('hidden')


    if name.match(regex) != null && className !=  file+"-hidden-input"
      $(obj).remove()

# ***** PHOTOS *****
@bindPhotoUploads = ->
  $('.survey-photo-upload').on 'click', (e, data) ->
