Skip to content

How to read a file from a remote disk ? #142

Discussion options

You must be logged in to vote

Really enjoy your work, @freekmurze!

I've developed a wrapper for the SimpleExcelReader to enhance its functionality, enabling the handling of both local and remote files primarly for reading. This enhancement is achieved through a mechanism that detects if a file is a stream resource. When working with remote files, it downloads them to a temporary file. If the stream resource is already a local file then it just uses it without downloading.

In the event a file is downloaded, I've implemented a shutdown cleanup process that automatically removes the temporary file after use.

The wrapper also supports handling temporary files created by Livewire. While there may be better solutions, this …

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@joetito1
Comment options

Comment options

You must be logged in to vote
1 reply
@shamil8124
Comment options

Answer selected by freekmurze
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants