This is actually a very serious deficiency in the O'Reilly code, and pretty much makes it unusable for anything other than a toy website. Basically, if two people simultaneously upload files with the same name, horrible things happen.
I extended the O'Reilly code to eliminate the filesystem entirely; files are simply uploaded to memory. Obviously you don't want to do this if you are receiving huge files, but you can set a maximum size. Take a look at SafeMultipartFilter.java and SafeMultipartWrapper.java in this package: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/mav/pig/src/java/org/info hazard/pig/web/servlet/ Jeff Schnitzer [EMAIL PROTECTED] > -----Original Message----- > From: Anthony Smith [mailto:[EMAIL PROTECTED]] > Sent: Thursday, April 25, 2002 2:29 PM > To: [EMAIL PROTECTED] > Subject: Sevlet Upload Question > > I use the oreilly classes for file upload stuff, but here's what I would > like to do? > > Instead of uploading the file as the name that they chose when they hit > the > browse button I want to give it its on name for each uploaded file. > > How can I do this? > > ________________________________________________________________________ __ > _ > To unsubscribe, send email to [EMAIL PROTECTED] and include in the > body > of the message "signoff SERVLET-INTEREST". > > Archives: http://archives.java.sun.com/archives/servlet-interest.html > Resources: http://java.sun.com/products/servlet/external-resources.html > LISTSERV Help: http://www.lsoft.com/manuals/user/user.html ___________________________________________________________________________ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
