I tried to get file from Storage of my Laravel Application like following: (Notice: In Firefox Files in pdf / jpeg format are directly been showed. Other files like docx or something is causing download).
$contents = Storage::get("files/" . $file);
return $contents;
In Google Chrome file is not showing and just shows me source of file like this (Following is example if I have a jpeg image) My whole desktop is full of follwing signs:
???à?JFIF???????????
Do I have to set headers or something to show files in Google Chrome?
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…