[Idrs-dev] Added File Upload Support!!!!
Brought to you by:
bigman921
|
From: Marc B. <mbo...@ya...> - 2002-02-28 00:04:57
|
Hey everyone, I've finally added file upload support to the idrs! The addition is transparent though. When a form's method is port and it's enctype is multipart/form-data the net.sourceforge.idrs.core.servlet.MultiPartRequest is used to parse the request. The nice thing is that there are no temporary files, everything is stored in memory as byte arrays. When a file needs to be saved, call the getMultiPartRequest() method of the idrs scripter object. Once you have the MultiPartRequest, call saveFile(key,path) to save it. Marc |