Turbine has this functionality built in:
Here's an example using a velocity portlet:
In your vm use an html form like the following:
<form action="$jslink.getPortletById($portlet.ID)" enctype="multipart/form-data"
method="post">
<input type="file" name="fileToUpload" size=20">
<input type="submit" name="eventSubmit_doUpload" value="Upload">
</form>
In your doUpload portlet action:
org.apache.turbine.util.upload.FileItem fi =
rundata.getParameters().getFileItem("fileToUpload");
file.write("/var/tmp/");
>>> [EMAIL PROTECTED] 02/05/04 09:04AM >>>
hi!
I guess this is not really a jetspeed-specific question:
I would need to write a portlet, prolly a velocity-portlet, that, after a button is
pressed, opens a file dialog. the user should be able to select a file from his local
file system and then upload it to the machine where jetspeed is installed.
like i said, this is more a web-programming question rather than a jetspeed-question.
However, any hint would be appreciated.
cheers!
Rob
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]