Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F1074031
ConpherenceFormDragAndDropUploadControl.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
953 B
Referenced Files
None
Subscribers
None
ConpherenceFormDragAndDropUploadControl.php
View Options
<?php
final
class
ConpherenceFormDragAndDropUploadControl
extends
AphrontFormControl
{
private
$dropID
;
public
function
setDropID
(
$drop_id
)
{
$this
->
dropID
=
$drop_id
;
return
$this
;
}
public
function
getDropID
()
{
return
$this
->
dropID
;
}
protected
function
getCustomControlClass
()
{
return
null
;
}
protected
function
renderInput
()
{
$drop_id
=
celerity_generate_unique_node_id
();
Javelin
::
initBehavior
(
'conpherence-drag-and-drop-photo'
,
array
(
'target'
=>
$drop_id
,
'form_pane'
=>
'conpherence-form'
,
'upload_uri'
=>
'/file/dropupload/'
,
'activated_class'
=>
'conpherence-dialogue-upload-photo'
,
));
require_celerity_resource
(
'conpherence-update-css'
);
return
phutil_tag
(
'div'
,
array
(
'id'
=>
$drop_id
,
'class'
=>
'conpherence-dialogue-drag-photo'
,
),
pht
(
'Drag and drop an image here to upload it.'
));
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Sun, Jun 29, 5:41 PM (1 d, 18 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
263807
Default Alt Text
ConpherenceFormDragAndDropUploadControl.php (953 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment