<cfif FileExists(form.xray)>
Is only good if form.xray is a string representing an
absolute path to the file. In any case, this is about a file on the
server, not on the client.
<cfif form.xray GT "">
Should be, for example, <cfif Len(Trim(form.xray)) GT
0>