         this.BOUNDARY + '"'
       },
       'body': multipartRequestBody})
-    if (!callback)
-      callback = (file) ->
-        console.log(file)
-    request.execute(callback)
 
   update: (fileId, title, content, callback) ->
     console.log('update file')

    if file
      documentLink = $('#document-link')
      documentLink.text(file.title)
      # TODO: file.alternateLinkで同じアドレス取れそう
      documentLink.attr("href", "https://drive.google.com/file/d/" \
       + file.id + "/view")
      documentLink.removeClass("text-muted").addClass("text-primary")

  uploadFileAlert: (file, methodName, caller)->
    if !file.error
      caller.alertView.show("info", "Success " + methodName + "!")
    else
      caller.alertView.show("danger", "Fail " + methodName + "!")

  fetchFileAlert: (file, caller)->
    if !file.error

  upload: ()->
    title = this.model_handler.getEditorTitle()
    content = this.model_handler.getEditorContent()

    this.model.upload(title, content)
      .then (methodName) =>
        this.alertView.show("info", "Success " + methodName + "!")
      .catch (methodName) =>
        this.alertView.show("danger", "Fail " + methodName + "!")

  updateDocumentLink: ()->
    console.log("update_document_link")
