<!--upload page-->
<form method="POST" enctype="multipart/form-data" action="test.rpy">
                <input type="file" name="filename">
                <input type="submit">
#rpy script
from twisted.web.resource import Resource
class test(Resource):
        def render_POST(self,request):
                f = open("/root/basic_daemon/htdocs/test/test.txt","wb") #absolute path,the path must use chmod modify authorization
                return "<html><body>" + 'success' + "</body></html>"
resource = test()
----by Leon----
----- Original Message -----
From: Iap, Singuan
To: leon_lee@thecus.com
Sent: Monday, November 29, 2004 4:56 PM
Subject: FW: [Twisted-Python] How to use .rpy do upload ?

If you got answer.
Why not answer yourself onto the post?

From: twisted-python-bounces@twistedmatrix.com [mailto:twisted-python-bounces@twistedmatrix.com] On Behalf Of Leon
Sent: Monday, November 29, 2004 11:43 AM
To: twisted-python@twistedmatrix.com
Subject: [Twisted-Python] How to use .rpy do upload ?

I  am a beginner,how can use .rpy do upload ???