I had tried this before posting the question and for some reason it did not work..Now it is.
Thank u very much.

Jordan Michaels <[EMAIL PROTECTED]> wrote:
Checking the fields length would work as described in the tag below.
I've always checked to see if the field was empty though. EG:

<CFIF IsDefined("FORM.FileFIeld") AND FORM.FileFIeld NEQ "">
    <!--- process image here --->
</CFIF>

HTH,
Jordan

Milan Mushran wrote:

> Basically, I do not want to upload a file if the user did not select
> an image on the form page and was just trying to update some text
> instead. So, How do I check for the existence of an image before file
> upload.
>
>
> Thanks a ton,
> Milan
>
> [EMAIL PROTECTED] wrote:
> I think what he means is there a way to check for the existence of
> that file
> FileExists
>
> -----Original Message-----
> From: Pascal Peters [mailto:[EMAIL PROTECTED]
> Sent: Friday, June 25, 2004 10:55 AM
> To: CF-Talk
> Subject: RE: Image Issue
>
> <cfif IsDefined("form.field") AND  Len(form.field)>
>
> > -----Original Message-----
> > From: Milan Mushran [mailto:[EMAIL PROTECTED]
> > Sent: vrijdag 25 juni 2004 17:51
> > To: CF-Talk
> > Subject: Image Issue
> >
> > Hi Guys,
> >  
> > When I try to upload an image using cffile, How do I check
> > for an existence of an image on the action page. For regular
> > form fields, we use IsDefined(), but what about for input type = file.
> >  
> > Thanks a ton,
> > Milan
> >
> >
> > ---------------------------------
> > Do you Yahoo!?
> > Yahoo! Mail - 50x more storage than other providers!
> >
> >
>   _____
> ---------------------------------
>
---------------------------------
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

Reply via email to