diff --git a/app/init.php b/app/init.php index 2f9f0e2399..50c5ab1a18 100644 --- a/app/init.php +++ b/app/init.php @@ -1108,7 +1108,7 @@ function getDevice($root): Device $connection = App::getEnv('_APP_CONNECTIONS_STORAGE', ''); $acl = 'private'; - $device = ''; + $device = STORAGE_DEVICE_LOCAL; $accessKey = ''; $accessSecret = ''; $bucket = ''; @@ -1123,7 +1123,7 @@ function getDevice($root): Device $region = $dsn->getParam('region'); } catch (\Exception $e) { Console::error($e->getMessage() . 'Invalid DSN. Defaulting to Local storage.'); - $device = 'Local'; + $device = STORAGE_DEVICE_LOCAL; } switch ($device) { diff --git a/src/Appwrite/Resque/Worker.php b/src/Appwrite/Resque/Worker.php index d7bedb6f2a..8503e18c3c 100644 --- a/src/Appwrite/Resque/Worker.php +++ b/src/Appwrite/Resque/Worker.php @@ -280,7 +280,7 @@ abstract class Worker $connection = App::getEnv('_APP_CONNECTIONS_STORAGE', ''); $acl = 'private'; - $device = ''; + $device = STORAGE_DEVICE_LOCAL; $accessKey = ''; $accessSecret = ''; $bucket = ''; @@ -295,7 +295,7 @@ abstract class Worker $region = $dsn->getParam('region'); } catch (\Exception $e) { Console::error($e->getMessage() . 'Invalid DSN. Defaulting to Local storage.'); - $device = 'file'; + $device = STORAGE_DEVICE_LOCAL; } switch ($device) {