>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

Reply via email to