Conversation
media files from webtrees instances on shared servers.
|
The problem with The design of webtrees allows media files to be stored in any filesystem - local or remote. So, this code would break the downloads for users of such a module/customisation. Now, I agree it would be good to use the PHP But to use this, we would need to be able to detect whether the supplied So. before we can make this change, we need a way to know if the current media filesystem is local or not. |
|
I have made the changes suggested above. The code you suggested (adding files to ZipArchive by name) is now present, but commented out. Still need the right logic for deciding whether to use it. |
|
Thank you for the detailled answer. Please tell me: if nothing else works, could adding an option to WT config file to control the zip behavior be a valid solution ? |
A proposal to fix download issues (gateway timeout and DB timeout) of ZIP archives including media files on shared servers with low performance and no control on DB time out values.
The fix idea is to use PHP zip extension as a primary solution to add media files to the archive, and use Flysystem streams if the extension is not available or if the zip creation throws an error.