# in file name
I had a user who uploaded a file with an illegal Char ("#") in the filename. So obviosly the file wouldn't load up when selected.
Now the boss wants to check for illegal chars prior to uploading files, not an unreasonable request IMHO, however the code:
<CFIF #Find ("#", file.ServerFile)# EQ 1>
do this
</CFIF>
does not properly process.
| The error occurred in C:\inetpub\wwwroot\Predator2\action\attachadd_act.cfm: line 30 | |
28 : </cfquery>
29 :
30 : <cfif #find("#", FILE.ServerFile)#>
|
Same results with FindNoCase, FindOneOf
