carina312 wrote a reply+100 XP
3mos ago
Response of the browser: content-type: application/vnd.ms-excel
In my test-file there is only the word TEST
and in the broken file there are many symbols, numbers,...:
Calibri Light1,6¼)Calibri16¼)Calibri1Ü6¼)Calibri1Ü)Calibri1Ü)Calibri1Ü<)Calibri1Ü>)Calibri1Ü? 00_ ;_ *}-} 00_ ;_ *}-} 00_ ;_ *}-} 00_ ;_ *}-} 00_ ;_ *}-} 00_ ;_ *}-} 00_ ;_ *}-}
carina312 wrote a reply+100 XP
3mos ago
When I open the file directly on the server, everything works fine. So, the problem occurs during download.
carina312 wrote a reply+100 XP
3mos ago
The error happens when opening the file in Excel.
„Excel cannot open the file 'corrupted.xlsx' because the file format or file extension is not valid. Verify that the file has not been corrupted and that the file extension matches the format of the file.“
carina312 started a new conversation+100 XP
3mos ago
Hi guy's,
I want to download an excel-file stored in storage/app/private/import via controller-function but everytime i open the downloaded-file I get an error: 'File-Type does not match file-extension'.
public function download($path) { $disk = Storage::disk('local'); return Storage::download($path); }
I have this problem with .xls and .xlsx Files
Can you help me?