         $uploadForm.trigger("s3_uploads_complete", [content]) unless current_files.length
 
       fail: (e, data) ->
+        console.log('fail')
         content = build_content_object $uploadForm, data.files[0], data.result
         content.error_thrown = data.errorThrown
 

        $.each $uploadForm.find(settings.disable_fields_after_submit), (index, item) =>
          $(item).removeAttr('disabled')

      if  validation_form
        form.submit() for form in forms_for_submit

      if settings.allow_send_form_without_file && $uploadForm.find('#file_name_for_upload').text().length == 0
        true
      else
        false

  setUploadForm = ->

            else
              forms_for_submit = [data]
          else
            console.log('zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz')
            data.submit()

      send: (e, data) =>
        console.log('send')
        $uploadForm.trigger('show_cancel_button')
        $(selectors.cancel_upload).on 'click', (e) =>
          data.xhr().abort()
          $uploadForm.trigger('enable_all_field')
