Url json s3.
This commit is contained in:
parent
6d2693ec5f
commit
ed8d95a942
@ -41,12 +41,8 @@ class InfoSectorialController extends Controller
|
|||||||
{
|
{
|
||||||
return $this->errorResponse( false, '', 500);
|
return $this->errorResponse( false, '', 500);
|
||||||
}
|
}
|
||||||
|
$path['path'] = Storage::disk('s3')->url($data->path);
|
||||||
|
|
||||||
$headers = [
|
return response()->json($path, 200);
|
||||||
'Content-Type' => 'application/pdf',
|
|
||||||
'Content-Disposition' => 'attachment; filename="'. basename($data->path) .'"',
|
|
||||||
];
|
|
||||||
|
|
||||||
return response()->make(Storage::disk('s3')->get($data->path), 200, $headers);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user