storage url o'zgartirildi
This commit is contained in:
@@ -2,8 +2,8 @@
|
||||
|
||||
namespace App\Api;
|
||||
|
||||
use App\Support\Uploads;
|
||||
use Carbon\Carbon;
|
||||
use Illuminate\Support\Facades\Storage;
|
||||
use Intervention\Image\Facades\Image as Imagee;
|
||||
|
||||
class ImageResize
|
||||
@@ -54,8 +54,8 @@ class ImageResize
|
||||
// 3. Upload thumb to S3/MinIO
|
||||
$thumbKey = $this->thumbFolder($type) . '/' . $thumbFilename;
|
||||
|
||||
if (env('FILESYSTEM_DISK') === 's3') {
|
||||
Storage::disk('s3')->put($thumbKey, file_get_contents($tmpThumb));
|
||||
if (config('filesystems.default') === 's3') {
|
||||
Uploads::put($thumbKey, file_get_contents($tmpThumb), 's3');
|
||||
} else {
|
||||
// Local: move to public/uploads/…/thumbs/…
|
||||
$localDir = public_path(dirname($thumbKey));
|
||||
|
||||
Reference in New Issue
Block a user