Export excel file to AWS s3 storage #3353
Unanswered
cuongnguyen139
asked this question in
Q&A
Replies: 1 comment 2 replies
-
Check if the local path exists for the temporary file |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
When I use this function to store my report to AWS s3
Excel::store($export, 'report.xlsx', 's3');
I got this error
mkdir(): No such file or directory
this one is working: Storage::disk('s3')->put('file.txt', 'Contents');
but Excel::store($export, 'report.xlsx', 's3'); is not working
This is the stack trace:
ErrorException:
mkdir(): No such file or directory
at /var/task/vendor/maatwebsite/excel/src/Files/TemporaryFileFactory.php:52
at Illuminate\Foundation\Bootstrap\HandleExceptions->handleError()
at mkdir()
(/var/task/vendor/maatwebsite/excel/src/Files/TemporaryFileFactory.php:52)
at Maatwebsite\Excel\Files\TemporaryFileFactory->makeLocal()
(/var/task/vendor/maatwebsite/excel/src/Writer.php:70)
at Maatwebsite\Excel\Writer->export()
(/var/task/vendor/maatwebsite/excel/src/Excel.php:195)
at Maatwebsite\Excel\Excel->export()
(/var/task/vendor/maatwebsite/excel/src/Excel.php:99)
at Maatwebsite\Excel\Excel->store()
(/var/task/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php:261)
at Illuminate\Support\Facades\Facade::__callStatic()
(/var/task/app/helpers.php:284)
Can someone help me with this?
Beta Was this translation helpful? Give feedback.
All reactions