Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F98303564
PhabricatorSetupCheckStorage.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sat, Jan 11, 22:20
Size
912 B
Mime Type
text/x-php
Expires
Mon, Jan 13, 22:20 (2 d)
Engine
blob
Format
Raw Data
Handle
23538910
Attached To
rPH Phabricator
PhabricatorSetupCheckStorage.php
View Options
<?php
final
class
PhabricatorSetupCheckStorage
extends
PhabricatorSetupCheck
{
protected
function
executeChecks
()
{
$local_path
=
PhabricatorEnv
::
getEnvConfig
(
'storage.local-disk.path'
);
if
(!
$local_path
)
{
return
;
}
if
(!
Filesystem
::
pathExists
(
$local_path
)
||
!
is_readable
(
$local_path
)
||
!
is_writable
(
$local_path
))
{
$message
=
pht
(
'Configured location for storing uploaded files on disk ("%s") does '
.
'not exist, or is not readable or writable. Verify the directory '
.
'exists and is readable and writable by the webserver.'
,
$local_path
);
$this
->
newIssue
(
'config.storage.local-disk.path'
)
->
setShortName
(
pht
(
'Local Disk Storage'
))
->
setName
(
pht
(
'Local Disk Storage Not Readable/Writable'
))
->
setMessage
(
$message
)
->
addPhabricatorConfig
(
'storage.local-disk.path'
);
}
}
}
Event Timeline
Log In to Comment