-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: Error open file after download #3657
Comments
I haven't have anyway right now. Who can help me? Thanks |
Hello, do you by any chance have some whitespace in a file somewhere? like your web.php file? I've had this issue and it turned out to be that. Took me ages to find! |
Thank for your answer. I only fill data to file, is it make effects? |
I'm facing the same issue here, for some reason when we try to export the file as a |
@anhtuan2810 , @leecrosdale , after some tests here, I've discovered the |
This bug report has been automatically closed because it has not had recent activity. If this is still an active bug, please comment to reopen. Thank you for your contributions. |
Hi there, I also had the same issue right now #3857 Sorry I open a new ticket cause no answer here |
Is the bug applicable and reproducable to the latest version of the package and hasn't it been reported before?
What version of Laravel Excel are you using?
3.1.36
What version of Laravel are you using?
8.74.0
What version of PHP are you using?
8.0
Describe your issue
I fill data in exist template excel, everything is okay until open file, i have following error:
How can the issue be reproduced?
This is my controller:
`
$fieldPath = config('files.excel_templates.order_pop.path') . DIRECTORY_SEPARATOR . config('files.excel_templates.order_pop.file_path');
$fileDownload = $fieldPath . DIRECTORY_SEPARATOR . config('files.excel_templates.order_pop.file_name');
$exists = Storage::disk('s3')->exists($fileDownload);
if (! $exists) {
abort(404);
}
Storage::disk('local')->put($fileDownload, Storage::disk('s3')->get($fileDownload));
And this is my Export Class:
`
$shops = TmpMstShop::where('application_id', $this->applicationId)->with('lineAccountOrderById')
->whereHas('lineAccountOrderById', function ($getLineAccountStatus) {
$getLineAccountStatus->where('line_startkit_apply', TmpLineAccountOrder::APPLY);
})->get();
`
What should be the expected behaviour?
So what is this problem and how to solve it?
The text was updated successfully, but these errors were encountered: