You can't set the value of a file field?

On a record edit form:

<cfinput name="thumb"
        type="file"
        value="#EDITtestimonials.thumb#">
<input type="hidden" name="current_thumb" value="#thumb#" />


On submit, the hidden field is compared to the file field and if the two 
match, then the field in the DB isn't updated. If they don't match, then 
the user entered a new file, so the field is updated (after proper 
validation).

So, the value attribute can't be a variable? I swear I've never seen 
this before...



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four 
times a year.
http://www.fusionauthority.com/quarterly

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:260434
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Reply via email to