cocoon-docs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Cocoon Wiki] Update of "FileUploadsWithFlow" by JoergHeinicke
Date Wed, 20 Sep 2006 19:41:40 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Cocoon Wiki" for change notification.

The following page has been changed by JoergHeinicke:
http://wiki.apache.org/cocoon/FileUploadsWithFlow

The comment on the change is:
removed leading slashes in URLs which were also partly wrong

------------------------------------------------------------------------------
  Start with the following page:
  {{{
     <html>
-     <form action="/upload" method="POST" enctype="multipart/form-data">
+     <form action="upload" method="POST" enctype="multipart/form-data">
       <input type="file" name="upload-file"/>
       <input type="submit" name="action" value="Upload"/>
      </form>
     </html>
  }}}
- Then hook the /upload URL to a flow function:
+ Then hook the upload URL to a flow function:
  {{{
-    <map:match pattern="/upload">
+    <map:match pattern="upload">
      <map:call function="upload"/>
     </map:match>
  
-    <map:match pattern="/*.html">
+    <map:match pattern="*.html">
      <map:read src="{1}.html"/>
     </map:match>
  }}}

Mime
View raw message