You are viewing a plain text version of this content. The canonical link for it is here.
Posted to docs@cocoon.apache.org by Apache Wiki <wi...@apache.org> on 2006/09/20 21:41:40 UTC
[Cocoon Wiki] Update of "FileUploadsWithFlow" by JoergHeinicke
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>
}}}