[Zope] LocalFS guidance

Jeff Nielsen / UgoFast Jeff@UgoFast.com
Wed, 24 Jul 2002 22:31:11 -0700


This is a multi-part message in MIME format.

------=_NextPart_000_0001_01C23361.F5BBB900
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit

I'm puzzled again. I'm using the manage_uploadForm to allow users to upload
new files to my web site. The upload works fine, but after the upload, I
want the user to be directed back to a page of the web site
(/Maintain/Edit/Company/) instead of the default behaivor of putting the
user at the manage_main page of the LocalFS directory where the file was
uploaded to (which also prompts for a login, not good.). I'm using the
following line to call the upload form:

<form action="/images/<dtml-var
"FSSession['LoginCompanyImagesPath']">/manage_uploadForm" method="post"
enctype="multipart/form-data">

/images is the LocalFS directory and FSSession['LoginCompanyImagesPath']
holds the subdirectory path where the files should be put.

I see the following bit in the LocalFS changes files, but I can't seem to
get a clue about how to implement a different "action"

"Added optional 'action' parameter to manage_upload to allow redirecting
somewhere other than the default 'manage_workspace'."

Any help is appreciated.

Jeff

------=_NextPart_000_0001_01C23361.F5BBB900
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3DWindows-1252">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
6.0.5762.3">
<TITLE>LocalFS guidance</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->

<P><FONT SIZE=3D2 FACE=3D"Arial">I'm puzzled again. I'm using the =
manage_uploadForm to allow users to upload new files to my web site. The =
upload works fine, but after the upload, I want the user to be directed =
back to a page of the web site (/Maintain/Edit/Company/) instead of the =
default behaivor of putting the user at the manage_main page of the =
LocalFS directory where the file was uploaded to (which also prompts for =
a login, not good.). I'm using the following line to call the upload =
form:</FONT></P>

<P><FONT SIZE=3D2 FACE=3D"Arial">&lt;form =
action=3D&quot;/images/&lt;dtml-var =
&quot;FSSession['LoginCompanyImagesPath']&quot;&gt;/manage_uploadForm&quo=
t; method=3D&quot;post&quot; =
enctype=3D&quot;multipart/form-data&quot;&gt;</FONT></P>

<P><FONT SIZE=3D2 FACE=3D"Arial">/images is the LocalFS directory and =
FSSession['LoginCompanyImagesPath'] holds the subdirectory path where =
the files should be put.</FONT></P>

<P><FONT SIZE=3D2 FACE=3D"Arial">I see the following bit in the LocalFS =
changes files, but I can't seem to get a clue about how to implement a =
different &quot;action&quot;</FONT></P>

<P><FONT SIZE=3D2 FACE=3D"Arial">&quot;Added optional 'action' parameter =
to manage_upload to allow redirecting somewhere other than the default =
'manage_workspace'.&quot;</FONT></P>

<P><FONT SIZE=3D2 FACE=3D"Arial">Any help is appreciated.</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">Jeff</FONT>
</P>

</BODY>
</HTML>
------=_NextPart_000_0001_01C23361.F5BBB900--