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
If I open the url in its own tab, the image is dislpayed. As per my code, its a must i return the file as a response()->file() without downloading or streaming.
This discussion was converted from issue #43905 on August 29, 2022 06:59.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Thank you for the great framework.
I have been having a problem while returning file response from a controller.
Im getting this error;
The file "https://web.s3.eu-west-2.amazonaws.com/...." does not exist
If I open the url in its own tab, the image is dislpayed. As per my code, its a must i return the file as a response()->file() without downloading or streaming.
My partial code is as below
$url = Storage::disk('s3)->temporaryUrl( $file->file_path.$file->name, now()->addMinutes(5) ); return response()->file($url);
I would appreciate your response and assistance. Thank you.
Beta Was this translation helpful? Give feedback.
All reactions