I finally found this reference: http://www.caucho.com/resin-3.0/config/webapp.xtp
And under the multipart-form section it says: For an uploaded file with a form name of foo, the parameter value contains the path name to a temporary file containing the uploaded file. foo.filename contains the uploaded filename, and foo.content-type contains the content-type of the uploaded file. However when I dump this to the screen: ${param.file}:${param.file.filename}:${param.file[filename]} The only thing that outputs is the ${param.file}. The other two outputs are null. Any ideas? Thanks, -a > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Aaron Freeman > Sent: Thursday, May 22, 2008 3:53 PM > To: resin-interest@caucho.com > Subject: [Resin-interest] Multipart Upload > > >From the example in the Resin documentation I see how to get > the name > >of the > temporary file that was created. But I cannot find on Google > any examples on how to reference the original file's name, or > content-type. Can someone give me a clue how to get that > piece of data? > > To be clear, in this example from the Resin documentation: > > <% > String fileName = request.getParameter("file"); > FileInputStream is = new FileInputStream(fileName); > > int ch; > while ((ch = is.read()) >= 0) > out.print((char) ch); > > is.close(); > %> > > If the person sent a file called foobar.txt, how do I get to > the name, foobar.txt? > > Thanks > > -a > > > > _______________________________________________ > resin-interest mailing list > resin-interest@caucho.com > http://maillist.caucho.com/mailman/listinfo/resin-interest > _______________________________________________ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest