mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-24 03:57:22 +08:00
improve admin user profile + image hosting
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user