Re: Store permanently file in temp directory

2010-10-13 Thread Rahul Mohan
Mailing List Date: 14-10-2010 02:02 Subject: Re: Store permanently file in temp directory Yes I am sure I am working on front side only so I am sending stream to server using delegate provided by the server. My code skeleton is as follow: @Override protected ActionForward executeAction

Re: Store permanently file in temp directory

2010-10-13 Thread Dave Newton
Right, so, Struts 1 uses commons-fileupload, and so does your code--what makes you think you're not using it?! Where do you think those classes come from? Dave On Wed, Oct 13, 2010 at 4:32 PM, Anjib Mulepati wrote: > Yes I am sure > > I am working on front side only so I am sending stream to s

Re: Store permanently file in temp directory

2010-10-13 Thread Anjib Mulepati
Yes I am sure I am working on front side only so I am sending stream to server using delegate provided by the server. My code skeleton is as follow: @Override protected ActionForward executeAction(ActionMapping mapping, ActionForm form, HttpServletRequest request,

Re: Store permanently file in temp directory

2010-10-13 Thread Dave Newton
You're not? You sure? http://www.mvnbrowser.com/artifact-details.html?groupId=struts&artifactId=struts&version=1.2.9&tab=DEPENDENCIES#tabs Dave On Wed, Oct 13, 2010 at 4:10 PM,

Re: Store permanently file in temp directory

2010-10-13 Thread Anjib Mulepati
I am not using common-fileupload library so do I have to write extra piece of code to delete? Anjib On 10/13/2010 3:11 AM, Rahul Mohan wrote: Does the (temporary!!) files get deleted automatically? I though that we have to delete it with some additional code. Can any one make clear on th

Re: Store permanently file in temp directory

2010-10-13 Thread Rahul Mohan
> Does the (temporary!!) files get deleted automatically? I though that > we have to delete it with some additional code. > Can any one make clear on this. > Yes. On upload, the commons-fileupload library creates temporary files on the disk which are deleted on completion of the request. I

Re: Store permanently file in temp directory

2010-10-12 Thread Dave Newton
On Tuesday, October 12, 2010, Anjib Mulepati wrote: > Also in validation part, I didn't find a way file names in the file input box > reload automatically after validation fail. It is possible to do with normal > HTML tag No. That's just how browsers work; it's a security thing. Dave

Re: Store permanently file in temp directory

2010-10-12 Thread Anjib Mulepati
Does the (temporary!!) files get deleted automatically? I though that we have to delete it with some additional code. Can any one make clear on this. Also in validation part, I didn't find a way file names in the file input box reload automatically after validation fail. It is possible to do

Store permanently file in temp directory

2010-10-12 Thread Oscar
Hi to all, i'm developing a S1 application that has a form with upload file control. I know that, by default, when you upload a file, it stores temporally in a temp directory that normally is web directory. I know that after that, the file is deleted, so i wanna know if exists a way to tell struts