Fixed storage root path
This commit is contained in:
parent
9901683c07
commit
d89e591476
|
@ -113,7 +113,7 @@ $utopia->get('/v1/health/storage/local')
|
|||
->label('docs', false)
|
||||
->action(
|
||||
function () use ($response) {
|
||||
$device = new Local();
|
||||
$device = new Local('/storage/uploads/');
|
||||
|
||||
if (!is_readable($device->getRoot().'/..')) {
|
||||
throw new Exception('Device is not readable');
|
||||
|
|
|
@ -24,7 +24,7 @@ use OpenSSL\OpenSSL;
|
|||
|
||||
include_once 'shared/api.php';
|
||||
|
||||
Storage::addDevice('local', new Local('app-'.$project->getUid()));
|
||||
Storage::addDevice('local', new Local('/storage/uploads/app-'.$project->getUid()));
|
||||
|
||||
$fileLogos = [ // Based on this list @see http://stackoverflow.com/a/4212908/2299554
|
||||
'default' => 'default.gif',
|
||||
|
|
Loading…
Reference in a new issue