From: Jan T. <de...@us...> - 2002-09-18 13:21:18
|
Update of /cvsroot/net-script/netscript2/src/scripts In directory usw-pr-cvs1:/tmp/cvs-serv3674 Added Files: upload.xml Log Message: * demo script for file upload --- NEW FILE: upload.xml --- <?xml version="1.0"?> <!-- NetScript 2.0 Demo Script - Upload example --> <html xmlns:ns="http://netscript.insomnia-hq.de"> <head> <title>Forms Test</title> </head> <body bgcolor="#FFFFFF" text="#000000"> <ns:if test="'$(P.mode)' ne 'reply'"> Upload a file <form method="post" action="$(SYS.interpreterURL)" enctype="multipart/form-data"> <input type="hidden" name="mode" value="reply"/> <input type="hidden" name="scriptURL" value="$(SYS.scriptURL)"/> <input type="file" name="myFile"/> <input type="submit"/> </form> </ns:if> <ns:else> Uploading... <ns:var name="myFile"/> <ns:var name="myBytes"/> <ns:upload directory="/home/kork/incoming" file="myFile" bytes="myBytes" parameter="myFile"/> Uploaded $(myFile) which had $(myBytes) bytes... </ns:else> </body> </html> |