2013-05-26 22:45:24 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
final class PhabricatorFileUploadDialogController
|
|
|
|
extends PhabricatorFileController {
|
|
|
|
|
2015-07-27 18:41:53 +02:00
|
|
|
public function handleRequest(AphrontRequest $request) {
|
|
|
|
$viewer = $request->getViewer();
|
2013-05-26 22:45:24 +02:00
|
|
|
|
|
|
|
$dialog = id(new AphrontDialogView())
|
2015-07-27 18:41:53 +02:00
|
|
|
->setUser($viewer)
|
2013-10-11 14:15:44 +02:00
|
|
|
->setTitle(pht('Upload File'))
|
2013-05-26 22:45:24 +02:00
|
|
|
->appendChild(pht(
|
|
|
|
'To add files, drag and drop them into the comment text area.'))
|
|
|
|
->addCancelButton('/', pht('Close'));
|
|
|
|
|
|
|
|
return id(new AphrontDialogResponse())->setDialog($dialog);
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|