Re: [ moin-Bugs-935700 ] Standalone server: fix file uploads

Reimar Bauer <[email protected]>
Newsgroups gmane.comp.web.wiki.moin.devel
Organization FZ-Jülich
Message-ID <[email protected]>
>Initial Comment:
>The standalone server doesn't set the content-type,
>which means that multipart/form-data doesn't work,
>which means
>that file uploads don't work, which means that creating
>attachments doesn't work.

>The attached patch sets content-type, and adds
>an inefficient .readline() method because the 'cgi'
>module needs it.


In addition if the attachment variable is set no cgi is needed. 
Is it possible to store with this patch data in a different path as htdocs?

http://moinmaster.wikiwikiweb.de:8000/HelpOnInstalling/
ApacheOnUnix#head-354b04d9d28ce4a0e2160ccb1481ea3387856234

attachments ={
         'dir':'/home/jh/wiki/htdocs/'+sitename,
         'url': url_prefix+'/'+sitename}

Reimar

-- 
Forschungszentrum Juelich
email: [email protected]
http://www.fz-juelich.de/icg/icg-i/
==================================================================
a IDL library at ForschungsZentrum Juelich
http://www.fz-juelich.de/icg/icg-i/idl_icglib/idl_lib_intro.html
signature.asc (application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)

iD8DBQBAgCwc5aOc3Q9hk/kRAjvfAKCvw7fZN/g/bArWqJIiAQ8VbjqgYQCgj71q
EaIqT38B2Ywk9WUBxkdcPp0=
=/2Dz
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.