|
@@ -382,6 +382,7 @@ Route::middleware('check.gate.token')->group(function () {
|
|
|
|
|
|
|
|
|
|
Route::post('/brand-image-file-list', function (Request $request) {
|
|
Route::post('/brand-image-file-list', function (Request $request) {
|
|
|
|
+ $theme = env('DBR_THEME');
|
|
$filePath = daboryPath("themes/" . env('DBR_THEME') . "/pro/resources/assets/brand-images");
|
|
$filePath = daboryPath("themes/" . env('DBR_THEME') . "/pro/resources/assets/brand-images");
|
|
$files = \File::allFiles($filePath);
|
|
$files = \File::allFiles($filePath);
|
|
|
|
|
|
@@ -527,11 +528,17 @@ Route::middleware('check.gate.token')->group(function () {
|
|
if (!$request->hasFile('file')) {
|
|
if (!$request->hasFile('file')) {
|
|
return response('error', 500);
|
|
return response('error', 500);
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+ // $type = $request->input('type');
|
|
$media = json_decode(request('media'), true);
|
|
$media = json_decode(request('media'), true);
|
|
-
|
|
|
|
$file = $request->file('file');
|
|
$file = $request->file('file');
|
|
- $file->storeAs($media['path'], $media['name'], ['disk' => getDisk()]);
|
|
|
|
|
|
+
|
|
|
|
+ // if (isset($type) && !empty($type)) {
|
|
|
|
+ // $path = $media['path'] ?? 'default/path'; // 기본 경로 설정
|
|
|
|
+ // $filePath = \Storage::disk(getDisk())->put($path, $file);
|
|
|
|
+ // // return $filePath;
|
|
|
|
+ // return response($filePath, 201);
|
|
|
|
+ // }
|
|
|
|
+ // $file->storeAs($media['path'], $media['name'], ['disk' => getDisk()]);
|
|
|
|
|
|
$bdPage = [];
|
|
$bdPage = [];
|
|
if ($media['type'] == 'image') {
|
|
if ($media['type'] == 'image') {
|