improve admin user profile + image hosting

This commit is contained in:
xiaomlove
2024-12-29 22:16:41 +08:00
parent f146a654c2
commit 5a9f1f1017
40 changed files with 22110 additions and 456 deletions
+22
View File
@@ -0,0 +1,22 @@
<?php
namespace Nexus\Attachment\Drivers;
use Nexus\Attachment\Storage;
class Local extends Storage {
function upload(string $filepath): string
{
throw new \RuntimeException("Not implemented");
}
function getBaseUrl(): string
{
return sprintf("%s/%s", getSchemeAndHttpHost(), trim(get_setting("attachment.httpdirectory"), '/'));
}
function getDriverName(): string
{
return static::DRIVER_LOCAL;
}
}