Files are uploaded under random, uniqued names (not based on the name of the file on the client system). Tapestry uses File.createTempFile() (see UploadOutputStream).
Tapestry should respect the javax.servlet.tempdir stuff, however. ----- Original Message ----- From: "Eric Everman" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Monday, November 04, 2002 12:00 PM Subject: [Tapestry-developer] Upload Component (new thread) > [I had previously posted these questions, but had buried them under a > discussion of component documentation] > > Using the Upload Component, I noticed that uploaded files are stashed in > "C:\WINNT\system32\". Is there a way to control where the files are > uploaded to? A better default would be to respect the servlet's > javax.servlet.context.tempdir attribute. Also, is there a way to specify a > max file size? > > I looked thru the code for net.sf.tapestry.form.Upload and > net.sf.tapestry.multipart.UploadPart, but could not find the actual code > that determines where files are uploaded to. Can someone point me in the > right direction? > > One other concern: if all files are uploaded to the same directory, > wouldn't it be possible for multiple clients to overwrite each others files > during upload? Imagine dozens of people uploading their resume on a busy > site - chances are good that you would get a collision on the name > 'resume.doc'. The approach I've taken in other projects is to create a > unique directory for each file uploaded -- suggestions? > > Thanks, > > Eric Everman > > > > ------------------------------------------------------- > This SF.net email is sponsored by: ApacheCon, November 18-21 in > Las Vegas (supported by COMDEX), the only Apache event to be > fully supported by the ASF. http://www.apachecon.com > _______________________________________________ > Tapestry-developer mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/tapestry-developer > ------------------------------------------------------- This SF.net email is sponsored by: ApacheCon, November 18-21 in Las Vegas (supported by COMDEX), the only Apache event to be fully supported by the ASF. http://www.apachecon.com _______________________________________________ Tapestry-developer mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/tapestry-developer
