cocoon-docs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <>
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:

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

  Start with the following page:
-     <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"/>
- 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 pattern="/*.html">
+    <map:match pattern="*.html">
      <map:read src="{1}.html"/>

View raw message