Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2352126
PhabricatorGlobalUploadTargetView.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
981 B
Referenced Files
None
Subscribers
None
PhabricatorGlobalUploadTargetView.php
View Options
<?php
final
class
PhabricatorGlobalUploadTargetView
extends
AphrontView
{
private
$showIfSupportedID
;
public
function
setShowIfSupportedID
(
$show_if_supported_id
)
{
$this
->
showIfSupportedID
=
$show_if_supported_id
;
return
$this
;
}
public
function
getShowIfSupportedID
()
{
return
$this
->
showIfSupportedID
;
}
public
function
render
()
{
$instructions_id
=
celerity_generate_unique_node_id
();
require_celerity_resource
(
'global-drag-and-drop-css'
);
Javelin
::
initBehavior
(
'global-drag-and-drop'
,
array
(
'ifSupported'
=>
$this
->
showIfSupportedID
,
'instructions'
=>
$instructions_id
,
'uploadURI'
=>
'/file/dropupload/'
,
'browseURI'
=>
'/file/filter/my/'
,
));
return
phutil_tag
(
'div'
,
array
(
'id'
=>
$instructions_id
,
'class'
=>
'phabricator-global-upload-instructions'
,
'style'
=>
'display: none;'
,
),
pht
(
"
\x
E2
\x
87
\x
AA Drop Files to Upload"
));
}
}
File Metadata
Details
Attached
Mime Type
text/x-php
Expires
Tue, Sep 16, 12:34 PM (1 d, 23 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
386061
Default Alt Text
PhabricatorGlobalUploadTargetView.php (981 B)
Attached To
Mode
rP Phorge
Attached
Detach File
Event Timeline
Log In to Comment