Yep...looks like you're absolutely right...resubmission deletes the value
from the field...bummer...I undestand the security risk, but this is a
secured area,
I'm the only programmer, so the risk is practically non-existent.

Seems to me the choice to take the risk should be mine...

Rick


-----Original Message-----
From: Ian Skinner [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 24, 2006 12:18 PM
To: CF-Talk
Subject: RE: Any reason why a file field can be submitted back to the
page it's on?


<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>

You are not allowed to provide a value to a file input field.  This would be
a huge security risk, because we bad programmers could so easily trick users
to load any old file we wanted.






~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:241310
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=11502.10531.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to