You might find http://projects.apache.org/projects/jakarta_commons_fileupload.html useful.
Works fine for me. Peter --- In [EMAIL PROTECTED], "ivansebastiansurya" <[EMAIL PROTECTED]> wrote: > > Hi everyone, > > I'm wondering if anyone has actually write a servlet that becomes > the URL target of a FileReference.upload() method. > > It seems that the uploaded file can be retrieved in the inputstream > of the post request, i.e. in the inputstream of the Request in > doPost() method. > > The problem is, there are lots of other data as well in that input > stream (the actual file uploaded is in a form value called Filedata) > and I don't know how to extract just the uploaded file so that I can > store it in the machine where the servlet is. > > I tried using getParameter("Filedata") but it doesn't work. > Does anyone know how to get around this problem? > > Many thanks in advance. Any help would be greatly appreciated. > > Cheers, > > Ivan. >