dammit.  i didn't realize it was a file field.  i mean, it's not like
it was mentioned in the subject AND in the first line of the post,
right? :)

<sigh>

yeah, Russ is spot on.


On 11/14/06, Snake <[EMAIL PROTECTED]> wrote:
> If it were possible to set the value of a file field, then you would be able
> to force/trick users into uploading any file form their PC. Thus why it is
> not possible to do that.
>
> Russ
>
> -----Original Message-----
> From: Les Mizzell [mailto:[EMAIL PROTECTED]
> Sent: 15 November 2006 00:11
> To: CF-Talk
> Subject: You can't set the value of a file field?
>
> 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:260440
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