diff --git a/src/FederationServer/Classes/Configuration/FileStorageConfiguration.php b/src/FederationServer/Classes/Configuration/FileStorageConfiguration.php new file mode 100644 index 0000000..5cf9aee --- /dev/null +++ b/src/FederationServer/Classes/Configuration/FileStorageConfiguration.php @@ -0,0 +1,41 @@ +path = $config['path'] ?? '/var/www/uploads'; + $this->maxSize = $config['max_size'] ?? 52428800; + } + + /** + * Get the file storage path. + * + * @return string + */ + public function getPath(): string + { + return $this->path; + } + + /** + * Get the maximum file size allowed for uploads. + * + * @return int + */ + public function getMaxSize(): int + { + return $this->maxSize; + } + } +