<?php

final class PhabricatorFileUploadDialogController
  extends PhabricatorFileController {

  public function processRequest() {
    $request = $this->getRequest();
    $user = $request->getUser();

    $dialog = id(new AphrontDialogView())
      ->setUser($user)
      ->setTitle(pht('Upload Image'))
      ->appendChild(pht(
        'To add files, drag and drop them into the comment text area.'))
      ->addCancelButton('/', pht('Close'));

    return id(new AphrontDialogResponse())->setDialog($dialog);
  }

}

<?php

final class PhabricatorFileUploadDialogController
  extends PhabricatorFileController {

  public function processRequest() {
    $request = $this->getRequest();
    $user = $request->getUser();

    $dialog = id(new AphrontDialogView())
      ->setUser($user)
      ->setTitle(pht('Upload File'))
      ->appendChild(pht(
        'To add files, drag and drop them into the comment text area.'))
      ->addCancelButton('/', pht('Close'));

    return id(new AphrontDialogResponse())->setDialog($dialog);
  }

}

Rename "Upload Image" dialog to "Upload File" to match purpose
Rename "Upload Image" dialog to "Upload File" to match purpose

Summary: Fixes T3940.

Test Plan: Clicked button, looked at dialog.

Reviewers: epriestley, #blessed_reviewers

Reviewed By: epriestley

CC: nmalcolm, Korvin, epriestley, aran

Maniphest Tasks: T3940

Differential Revision: https://secure.phabricator.com/D7287
