What happens if you take the "value" attribute out?
Rick Faircloth wrote:
> Anything wrong with this code?
>
> <CFIF IsDefined("Form.AgentID")>
>
> <INPUT Name="PropPhoto01Upload" Type="File"
> Value="<CFOUTPUT>#Form.PropPhoto01Upload#</CFOUTPUT>" Size="40"
> Class="TextInput01">
>
> <CFELSE>
>
> <INPUT Name="PropPhoto01Upload" Type="File" Value="" Size="40"
> Class="TextInput01">
>
> </CFIF>
>
> -----Original Message-----
> From: Ray Champagne [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, May 24, 2006 12:01 PM
> To: CF-Talk
> Subject: Re: Any reason why a file field can be submitted back to the
> page it's on?
>
>
> Do you have a link?
>
> Rick Faircloth wrote:
>> Yep...multipart/form-data...
>>
>> -----Original Message-----
>> From: Adkins, Randy [mailto:[EMAIL PROTECTED]
>> Sent: Wednesday, May 24, 2006 11:45 AM
>> To: CF-Talk
>> Subject: RE: Any reason why a file field can be submitted back to the
>> page it's on?
>>
>>
>> Did you check to see if you had the enctype set since you are dealing
>> with a FILE?
>>
>> -----Original Message-----
>> From: Rick Faircloth [mailto:[EMAIL PROTECTED]
>> Sent: Wednesday, May 24, 2006 11:39 AM
>> To: CF-Talk
>> Subject: Any reason why a file field can be submitted back to the page
>> it's on?
>>
>> Hi, all..
>>
>> I'm setting up a form which submits back to the page it's on for
>> validation and everything has been fine up until the point where I put a
>> file field in the form.
>>
>> When the form submits back to the page it's on, I get a long URL string
>> with my text field titles in it, e.g., ..cfm?AgentID=&PropType=&...
>>
>> There should be no URL string at all.
>>
>> It only appears when I put the file upload field in the form.
>> Otherwise the form works fine.
>>
>> I have checked for errors in the code and simply can't find any that
>> would cause this to happen.
>>
>> I don't know that I've ever validated a form this way with a file field
>> in it, so I was wondering if there was something I'm missing about doing
>> this...
>>
>> Rick
>>
>>
>>
>>
>>
>>
>>
>>
>
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:241298
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54