1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-24 15:52:41 +01:00
phorge-phorge/src/applications/transactions/editfield/PhabricatorFileEditField.php

24 lines
501 B
PHP
Raw Normal View History

<?php
final class PhabricatorFileEditField
extends PhabricatorEditField {
protected function newControl() {
return new PHUIFormFileControl();
}
protected function newHTTPParameterType() {
return new AphrontFileHTTPParameterType();
}
protected function newConduitParameterType() {
return new ConduitPHIDParameterType();
}
public function appendToForm(AphrontFormView $form) {
$form->setEncType('multipart/form-data');
return parent::appendToForm($form);
}
}