1
0
Fork 0
mirror of synced 2024-06-27 02:31:04 +12:00

Fixed storage root path

This commit is contained in:
Eldad Fux 2019-12-27 19:00:36 +02:00
parent 9901683c07
commit d89e591476
2 changed files with 2 additions and 2 deletions

View file

@ -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');

View file

@ -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',