diff --git a/app/controllers/health.php b/app/controllers/health.php index 09620d85e1..7741dfd067 100644 --- a/app/controllers/health.php +++ b/app/controllers/health.php @@ -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'); diff --git a/app/controllers/storage.php b/app/controllers/storage.php index b918e59b1f..a585411ad3 100644 --- a/app/controllers/storage.php +++ b/app/controllers/storage.php @@ -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',