Download of Images using the Storage class seems to have a problem #50780
Answered
by
chegejohn159
chegejohn159
asked this question in
Q&A
Replies: 3 comments 1 reply
-
hello @chegejohn159 check your stroage folder if the image file save with correct extension or not if it is then provide some more info like code, file format etc ? |
Beta Was this translation helpful? Give feedback.
0 replies
-
Beta Was this translation helpful? Give feedback.
1 reply
-
![image](https://github.com/user-attachments/assets/b367caf3-6a4d-48e3-b808-6d8ab1ef0fb0)
I had to do this for it to work
seems there were additional headers by default
here is the code
https://notepad.pw/download-laravel-11-img
…On Fri, Nov 8, 2024 at 1:13 AM Khey2 ***@***.***> wrote:
Extra, this problem ONLY HAPENDS WITH IMAGES, pdfs work perfectly
—
Reply to this email directly, view it on GitHub
<#50780 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AGE3IIRKVUVKFGUMEWJHH53Z7PQXLAVCNFSM6AAAAABRMGM4BKVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTCMJYGI4DINQ>
.
You are receiving this because you were mentioned.Message ID:
***@***.***>
--
*John Chege Kamau*
Software Developer
+254 (0) 701 020 901
|
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
chegejohn159
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello team, I am trying to do downloads in laravell 11, pdfs and .txt work perfectly, but once I try with an Image (png, jpg, jpeg, jfif), The image downloads but trying to open it says file format not allowed. Could I be missing something?
Beta Was this translation helpful? Give feedback.
All reactions