             type: $uploadForm.data('callback-method')
             url: callback_url
             data: content
+            dataType: 'json'
             beforeSend: ( xhr, settings )       ->
               event = $.Event('ajax:beforeSend')
               $uploadForm.trigger(event, [xhr, settings])

        $uploadForm.trigger("s3_uploads_complete", [content]) unless current_files.length

      fail: (e, data) ->
        content = build_content_object $uploadForm, data.files[0], data.result
        content.error_thrown = data.errorThrown


    content

  has_relativePath = (file) ->
    console.log('xxxxxxxxxxxxxxxxxxxxx')
    file.relativePath || file.webkitRelativePath

  build_relativePath = (file) ->
    console.log('cccccccccccccccccccccc')
    file.relativePath || (file.webkitRelativePath.split("/")[0..-2].join("/") + "/" if file.webkitRelativePath)

  #public methods
  @initialize = ->
    console.log('dddddddddddddddddddddddddddddddddd')
    # Save key for IE9 Fix
    $uploadForm.data("key", $uploadForm.find("input[name='key']").val())

