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

Christophe David pmwiki at christophedavid.org
Sun Feb 4 15:40:47 CST 2007


>
> >    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
>
>
Many FTP clients allow  to specify a list of extensions that are to be
considered as text files requiring the conversion of CR/LF depending on the
target.

Maybe a configuration variable could hold an array with extensions a PmWiki
admin wants to have converted when uploaded ?

Christophe
-------------- next part --------------
An HTML attachment was scrubbed...
URL: /pipermail/pmwiki-users/attachments/20070204/bce82b65/attachment.html 


More information about the pmwiki-users mailing list