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

Reimar Bauer R.Bauer at fz-juelich.de
Fri Apr 16 11:43:04 EDT 2004


>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: R.Bauer at fz-juelich.de
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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: signature
URL: <http://mail.python.org/pipermail/moin-devel/attachments/20040416/340bceff/attachment.sig>


More information about the Moin-devel mailing list