Return-Path:
Example�4.�File Upload
The following HTML in one file, say, upload.html -
<form action="foo.rvt" enctype="multipart/form-data" -method="post"> +<form action="foo.rvt" enctype="multipart/form-data" method="post"> <input type="file" name="MyUpload"></input> -</form>+<input type="submit" value="Send File"></input> +</form> +
Can be used with the following Tcl code, in a second file (upload.rvt for instance) in order to create a file upload form. 1.3 +4 -3 tcl-rivet/doc/html/examples.html.ru Index: examples.html.ru =================================================================== RCS file: /home/cvs/tcl-rivet/doc/html/examples.html.ru,v retrieving revision 1.2 retrieving revision 1.3 diff -u -r1.2 -r1.3 --- examples.html.ru 5 Jul 2003 08:33:33 -0000 1.2 +++ examples.html.ru 7 Jul 2003 11:10:08 -0000 1.3 @@ -159,10 +159,11 @@
Example�4.�Закачка файлов (Upload)
Пусть есть такой HTML код upload.html -
<form action="foo.rvt" enctype="multipart/form-data" -method="post"> +<form action="foo.rvt" enctype="multipart/form-data" method="post"> <input type="file" name="MyUpload"></input> -</form>+<input type="submit" value="Send File"></input> +</form> +
Из такого Tcl кода, например, (под названием upload.rvt) мы получаем доступ к загруженному файлу. 1.5 +4 -4 tcl-rivet/doc/html/help.html.en Index: help.html.en =================================================================== RCS file: /home/cvs/tcl-rivet/doc/html/help.html.en,v retrieving revision 1.4 retrieving revision 1.5 diff -u -r1.4 -r1.5 --- help.html.en 5 Jul 2003 08:33:33 -0000 1.4 +++ help.html.en 7 Jul 2003 11:10:08 -0000 1.5 @@ -1,4 +1,4 @@ -
+
The Rivet mailing list is the first place you should turn for help, if you haven't found the solution to your problem in the documentation. Send email to @@ -9,7 +9,7 @@ <rivet-list-subscribe@tcl.apache.org>.
The mailing list archives are available at http://nagoya.apache.org/eyebrowse/SummarizeList?listId=118 -
The news:comp.lang.tcl newsgroup is a good place to ask about Tcl questions in general. Rivet developers also follow the newsgroup, but it's best to ask Rivet-specific questions on the Rivet @@ -31,11 +31,11 @@
Apache Rivet uses the Apache Bug Tracking system at http://nagoya.apache.org/bugzilla/. Here, you can report problems, or check and see if existing issues are already known and being dealt with. -
+
Mailing List (список рассылка) - это первейшее место куда надо обращаться за помощью, если, конечно, вы не нашли ответа в документации. Пишите на @@ -25,7 +25,7 @@ http://wiki.tcl.tk Tcl's Wiki, весьма полезный ресурс для задавания вопросов, получения ответов и отвечания на них для тех кто крут. -
Apache Rivet использует ВсеАпачную Систему Отлова Ошибок (ВАСОО) http://nagoya.apache.org/bugzilla/.
Всякие проблемы пишите сюда, или - что тоже полезно - вы можете
выяснить опыт ее решения, если кто-то уже с ней сталкивался.
1.6 +1 -1 tcl-rivet/doc/html/index.html.en
Index: index.html.en
===================================================================
RCS file: /home/cvs/tcl-rivet/doc/html/index.html.en,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- index.html.en 5 Jul 2003 08:33:33 -0000 1.5
+++ index.html.en 7 Jul 2003 11:10:08 -0000 1.6
@@ -2,7 +2,7 @@
��<davidw@apache.org>
Copyright � 2002, 2003 Apache Software Foundation
Table of Contents
+
Copyright � 2002, 2003 Apache Software Foundation
Table of Contents
This document is also available in the following languages: Russian
Document reversion: $Revision$, last modified $Date$ by $Author$.
1.5 +1 -1 tcl-rivet/doc/html/index.html.ru
Index: index.html.ru
===================================================================
RCS file: /home/cvs/tcl-rivet/doc/html/index.html.ru,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- index.html.ru 5 Jul 2003 08:33:33 -0000 1.4
+++ index.html.ru 7 Jul 2003 11:10:08 -0000 1.5
@@ -2,7 +2,7 @@
����������<davidw@apache.org>
��������
Russian Translation: Dmitry the Zuryanovich
Copyright � 2002, 2003 Apache Software Foundation
Table of Contents
+��������
Russian Translation: Dmitry the Zuryanovich
Copyright � 2002, 2003 Apache Software Foundation
Table of Contents
This document is also available in the following languages: English
This document is based on version 1.20 of the original English version.
1.5 +3 -3 tcl-rivet/doc/html/internals.html.en Index: internals.html.en =================================================================== RCS file: /home/cvs/tcl-rivet/doc/html/internals.html.en,v retrieving revision 1.4 retrieving revision 1.5 diff -u -r1.4 -r1.5 --- internals.html.en 5 Jul 2003 08:33:33 -0000 1.4 +++ internals.html.en 7 Jul 2003 11:10:08 -0000 1.5 @@ -3,7 +3,7 @@ code is removed, and changes are made. The best place to look is the source code itself. If you are interested in the changes themselves FIXME. -
+
When Apache is started, (or when child Apache processes are started if a threaded Tcl is used), Rivet_InitTclStuff is called, which @@ -14,7 +14,7 @@ executes Rivet's init.tcl. The caching system is also set up, and if there is a GlobalInitScript, it is run. -
The RivetChan system was created in order to have an actual Tcl channel that we could redirect standard output to. This lets us use, for instance, the @@ -24,7 +24,7 @@ Tcl's regular standard output is replaced with an instance of this channel type, so that, by default, output will go to the web page. -
When a Rivet page is requested, it is transformed into an ordinary Tcl script by parsing the file for the <? ?> processing instruction tags. Everything outside these tags 1.4 +3 -3 tcl-rivet/doc/html/internals.html.ru Index: internals.html.ru =================================================================== RCS file: /home/cvs/tcl-rivet/doc/html/internals.html.ru,v retrieving revision 1.3 retrieving revision 1.4 diff -u -r1.3 -r1.4 --- internals.html.ru 5 Jul 2003 08:33:33 -0000 1.3 +++ internals.html.ru 7 Jul 2003 11:10:08 -0000 1.4 @@ -2,7 +2,7 @@ Эта секция давно устарела, поскольку новый код добавляется, а старый убирается. Так что лучше читайте исходники - они рулез!. И вообще если хотите чего-нибудь написать - FIXME. -
+
Когда apavhe запускается (или когда запускается использующий TCL дочерний процесс Apache ), вызывается Rivet_InitTclStuff, @@ -15,7 +15,7 @@ init.tcl. Система кеширования, опять же, и если есть GlobalInitScript, то и он запускается. -
Система RivetChan была создана для того чтобы перенаправлять стандартный поток вывода (stdout). По этой причине вы можете использовать стандартную команду @@ -23,7 +23,7 @@ (примечание переводчика: и fconfigure тоже, что полезно). Она также создает канал который буферизует output, и перенаправляет его в систему ввода-вывода Apache. -
Когда выполняется Rivet страница, она превращается в обычный Tcl скрипт, опираясь на символы <? ?>. Все что вне их рассматривается как большой большой аргумент для 1.5 +2 -2 tcl-rivet/doc/html/upgrading.html.en Index: upgrading.html.en =================================================================== RCS file: /home/cvs/tcl-rivet/doc/html/upgrading.html.en,v retrieving revision 1.4 retrieving revision 1.5 diff -u -r1.4 -r1.5 --- upgrading.html.en 5 Jul 2003 08:33:33 -0000 1.4 +++ upgrading.html.en 7 Jul 2003 11:10:08 -0000 1.5 @@ -5,8 +5,8 @@ compatibility was not a primary goal when creating Rivet, but we do provide this information which may be of use to those wishing to upgrade from mod_dtcl or NWS installations. -
+