mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-24 15:52:41 +01:00
86a00ee4ab
Summary: Ref T10747. This barely works, but can technically import some event data. Test Plan: Used import flow to import a ".ics" document. Reviewers: chad Reviewed By: chad Maniphest Tasks: T10747 Differential Revision: https://secure.phabricator.com/D16699
23 lines
501 B
PHP
23 lines
501 B
PHP
<?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);
|
|
}
|
|
|
|
}
|