You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I keep my images on aws s3, when user try to get image, he use api route Route::get('files/{id}', [FindFileByIdController::class, 'findFileById'])
so next step I check access to file, if all good give a image,
Task => return Image::make(Storage::disk('s3')->get($file->path));
Controller =>
Hi
If you are sending the image to a frontend,
why not just generate S3 TemporaryURL and send it to the frontend , where the can download direct from S3.
Thanks for your answer, I knew about it and did so,
But I wanted to understand how to change response header, maybe later I need to stream data or download file, etc ..
As I understand it is not possible(
Description:
I keep my images on aws s3, when user try to get image, he use api route
Route::get('files/{id}', [FindFileByIdController::class, 'findFileById'])
so next step I check access to file, if all good give a image,
Task =>
return Image::make(Storage::disk('s3')->get($file->path));
Controller =>
But Content Type not changed, stay json and image broke, but i set a truth content type, can i resolve this problem?
Maybe this is not quite a bug, but I would really appreciate your help)
Fotos
Versions:
The text was updated successfully, but these errors were encountered: