Hi all If I include following into my form to upload a already present file... <form action="manage_upload" method="post" enctype="multipart/form-data"> <table cellpadding="2" cellspacing="0" border="0"> <tr> <td align="left" valign="top"> <div class="form-label"> File </div> </td> <td align="left" valign="top"> <input type="file" name="file" size="25" value=""> </td> </tr> <tr> <td></td> <td align="left" valign="top"> <div class="form-element"> <input class="form-element" type="submit" value="Upload File"> </div> </td> </tr> </table> </form> </table> My problem is, that I always get redirected to manage_edit! Is there a way to get back to the document I called the upload from? Oliver Erlewein
<form action="manage_upload" method="post" enctype="multipart/form-data"> <table cellpadding="2" cellspacing="0" border="0">
...
</form> </table>
My problem is, that I always get redirected to manage_edit! Is there a way to get back to the document I called the upload from?
No. Not as far as I know. You must create your own handler for the file. I.e.: <form action="my_manage_upload" That particular method can then call manage_upload() manage_upload() doesn't _redirect_, it just shows the content of manage_edit sort of an alternative to returning: "file successfully uploaded." so you can ignore this with your method.
participants (2)
-
oliver.erlewein@sqs.de -
Peter Bengtsson