|
@@ -34,6 +34,7 @@ class UploadController extends Controller
|
|
$fileurl = $filename = time() . '_' . uniqid() . '.' . $kuoname;
|
|
$fileurl = $filename = time() . '_' . uniqid() . '.' . $kuoname;
|
|
}
|
|
}
|
|
$imageUrl = Storage::put($path . $filename, file_get_contents($filePath));
|
|
$imageUrl = Storage::put($path . $filename, file_get_contents($filePath));
|
|
|
|
+ Log::debug('image_url:'.$imageUrl.'path:'.$path.$filename);
|
|
if ($imageUrl) {
|
|
if ($imageUrl) {
|
|
return [
|
|
return [
|
|
'data' => ['url' => $path . $fileurl]
|
|
'data' => ['url' => $path . $fileurl]
|