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 get image file using $request->file('image') and save it in storage disk.
It saves the file with correct extension but when I'm using mime_content_type, it returns image/png.
Description:
I scanned the code base and I noticed we can only create jpeg or png files with this class.
Steps To Reproduce:
I needed to create image file with gif extension in my tests.
I get image file using
$request->file('image')
and save it in storage disk.It saves the file with correct extension but when I'm using
mime_content_type
, it returnsimage/png
.Description:
I scanned the code base and I noticed we can only create jpeg or png files with this class.
framework/src/Illuminate/Http/Testing/FileFactory.php
Lines 57 to 59 in 952f84a
The text was updated successfully, but these errors were encountered: