|
Cookbook /
CompressedUploadsSummary: Modify scripts/upload.php to work with bzip2 archives
Version:
Prerequisites:
Status:
Maintainer: Michael Savchuk
Categories: SystemTools, Administration
PreambleI am not native English speaker, so it would be great if you would correct my mistakes. I have a PMWiki installation on my flash disk. Naturally, it has a very small amount of free space. ProblemSome Microsoft Word documents take up over a megabyte of memory. Of course, you can store the files as archives (gzip, zip, rar, or something similiar), but to read them you have to do the following:
A bit cumbersome, isn't it? And of course there is a similar problem when uploading files to your wiki site. SolutionI've made some changes to scripts/upload.php which allow it to work with bzip2 archives. Now the compression process is absolutely transparent for the user. Files are bzip2 compressed when uploaded to your server and expanded when downloaded. DownloadInstallationJust copy this file to the wiki/scripts directory. The script is based on PmWiki 2.0.10. Bugs
ContributorsMichael Savchuk , 23 October. Comments |