I have found with using COM objects and CFOBJECT that I have to pass all the
input values for the method, even if they are optional. But I am not
familiar with SA FileUp.  I am using CF 5.0. 

Michael

> -----Original Message-----
> From: Sim Graves [mailto:sim@;simgraves.com] 
> Sent: Monday, November 11, 2002 8:46 PM
> To: CF-Talk
> Subject: Re: Method In CFOBJECT
> 
> 
> I thought it might be a good alternative to uploading large 
> files with CFFILE.
> 
> Any other alternatives would be welcome.
> 
> Sim
> 
> Russ wrote:
> 
> > Why do you have to use SA FileUp?
> >
> > I use:
> >
> > <!--- Begin the file upload --->
> > <cffile action="upload" filefield="FORM.File" 
> destination="--ABSOLUTE 
> > LOCATION FROM WEB HOST HERE--\#qClients.clientDirectory#\"
> > nameconflict="overwrite">
> >
> > Without any issue.
> >
> > Will that option not work for you?
> >
> > > -----Original Message-----
> > > From: Sim Graves [mailto:sim@;simgraves.com]
> > > Sent: Monday, November 11, 2002 8:00 PM
> > > To: CF-Talk
> > > Subject: Method In CFOBJECT
> > >
> > >
> > > The code below works fine in ASP:
> > >
> > > <% Set SA_FileUp = Server.CreateObject("SoftArtisans.FileUp") %>
> > >         <% SA_FileUp.SaveAs 
> "C:\inetpub\wwwroot\newfiles\pooh.jpg" 
> > > %>
> > >
> > > Using CFOBJECT, I can find on syntax that will invoke the method, 
> > > "SaveAs".  Why shouldn't this work:
> > >
> > > <CFOBJECT TYPE="COM" NAME="SA_FileUp" CLASS="SoftArtisans.FileUp" 
> > > ACTION="CREATE">
> > >
> > >  <CFSCRIPT>
> > >        SA_FileUp.SaveAs(C:\inetpub\wwwroot\newfiles\pooh.jpg");
> > >
> > > </CFSCRIPT>
> > >
> > > Any advice will be greatly appreciated.
> > >
> > >
> > > TIA
> > >
> > > Sim Graves
> > >

Reply via email to