Hi Yan,

I have been using the DiskFile with struts1.1. Works
fine. I would be glad if you can give me more details
on the problem.

regards
Alok
--- Yansheng Lin <[EMAIL PROTECTED]> wrote:
> I had a problem using DiskFile when upgrading to 1.1
> though.  Somehow you cannot
> convert/cast a FormFile to DiskFile anymore...  I
> think there was a post to dev
> list about this too.  It brings down your production
> code!!!
> 
> -----Original Message-----
> From: Alok Tijoriwala
> [mailto:[EMAIL PROTECTED] 
> Sent: August 6, 2003 9:33 AM
> To: Struts Users Mailing List
> Subject: Re: uploadfile path
> 
> 
> Hi Danielle,
> 
> You will have to use the DiskFile class which
> implements the FormFile interface.
>  In the struts-config.xml , your controller
> configuration should be as under:
> <controller
>
processorClass="com.abnamro.waf.struts.WAFRequestProcessor"
> tempDir="/upload" maxFileSize="10K"
>
multipartClass="org.apache.struts.upload.DiskMultipartRequestHandler">
>               <set-property property="inputForward"
> value="true"/>
>       </controller>
> 
> Regards
> Alok
> --- Dan Tran <[EMAIL PROTECTED]> wrote:
> > Folow the Struts upload example, you can trace
> thru
> > how Struts gets the
> > client file and upload to server where you have to
> > do extra work to copy
> > data from FormFile (its stream buffer)  to the
> your
> > choice of server
> > location.
> > 
> > -Dan
> > 
> > ----- Original Message ----- 
> > From: "Yansheng Lin" <[EMAIL PROTECTED]>
> > To: "'Struts Users Mailing List'"
> > <[EMAIL PROTECTED]>
> > Sent: Wednesday, August 06, 2003 8:18 AM
> > Subject: RE: uploadfile path
> > 
> > 
> > >     <html:form method="POST"
> > enctype="multipart/form-data">
> > >         <html:file property="theFile" />
> > >     </html:form>
> > >
> > > theFile is type of FormFile.  You can go from
> > there.
> > >
> > > -----Original Message-----
> > > From: Daniel Massie
> > [mailto:[EMAIL PROTECTED]
> > > Sent: August 6, 2003 2:35 AM
> > > To: Struts Users Mailing List
> > > Subject: uploadfile path
> > >
> > >
> > > I am trying to upload a file using html:file
> which
> > is received as a
> > > FormFile, the problem is I need to find out this
> > files absolute path. Hwo
> > > can I retrieve this information?
> > >
> > > Thanks
> > > Daniel
> > >
> > >
> > >
> >
>
---------------------------------------------------------------------
> > > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > > For additional commands, e-mail:
> > [EMAIL PROTECTED]
> > >
> > >
> > >
> >
>
---------------------------------------------------------------------
> > > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > > For additional commands, e-mail:
> > [EMAIL PROTECTED]
> > >
> > >
> > 
> >
>
---------------------------------------------------------------------
> > To unsubscribe, e-mail:
> > [EMAIL PROTECTED]
> > For additional commands, e-mail:
> > [EMAIL PROTECTED]
> > 
> 
> 
> __________________________________
> Do you Yahoo!?
> Yahoo! SiteBuilder - Free, easy-to-use web site
> design software
> http://sitebuilder.yahoo.com
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 
> 
>
---------------------------------------------------------------------
> To unsubscribe, e-mail:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> 


__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to