[pmwiki-users] upload text files - Windows -> Unix

Patrick R. Michaud pmichaud at pobox.com
Sun Feb 4 10:08:32 CST 2007


On Wed, Jan 31, 2007 at 09:34:42AM +0100, Christophe David wrote:
>    When uploading text files with FTP from a Windows system to a Unix system,
>    the line separators are converted properly (CR/LF -> LF).
> 
>    When uploading the same files with the PmWIki "upload" feature, this
>    conversion does not appear to be made, and the files are uploaded as if
>    they were binary files.
> 
>    Is there a way to change that ?

PmWiki just uses PHP's built-in upload file feature to store files
on disk, and this of course doesn't do any conversion.

We could come up with a local function that performs conversion.
How would PmWiki know when the conversion is to be performed?
Should we look for a .txt extension, or...?

Pm



More information about the pmwiki-users mailing list