     <script>console.log('Warning: Session Environment is empty.');</script>
 </cfif>
 
-<cfset referer_cfm_page = "profile_image_upload_v3.cfm">
-<!--- 
-<cffunction name="dumpAll">
-    <cfdump var='#cgi#'>
-    <cfdump var="#form#"> 
-    <cfdump var="#variables#"> 
-    <cfdump var="#request#">
-</cffunction>
-<cfset dumpAll()>--->
-
+    <cfset referer_cfm_page = "index.cfm">
 <!--- begin image processing --->
 <cfif cgi.request_method IS "post" AND 
-      ( 
-      structKeyExists(form,"hidden_input_image_file") 
-      OR 
-      structKeyExists(form,"hidden_input_image_file_cropped") 
-      )>
+      ( structKeyExists(form,"hidden_input_image_file") OR structKeyExists(form,"hidden_input_image_file_cropped") )>
 
     <cfif structKeyExists(form,"hidden_cropped_flag")>
-        <cfset search_text_area = #form.hidden_input_image_file_cropped#><!--- search_text_area if image IS cropped --->
-    <cfelse>
-        <cfset search_text_area = #form.hidden_input_image_file#><!--- search_text_area if image IS NOT cropped --->
+        <cfset search_text_area = #form.hidden_input_image_file_cropped#>
+    <cfelse>
+        <cfset search_text_area = #form.hidden_input_image_file#>
     </cfif>
 
   <cfif (trim(form.hidden_input_image_file) NEQ '') OR (trim(form.hidden_input_image_file_cropped) NEQ '')>

  

    <cflocation url="#referer_cfm_page#?msg=success&img=#return_image_file_name#"/> <!--- SUCCESS, send user back to calling page w/ file name---> 
        <!---<cfabort> Create Image Thumbnail    
        <cfif directoryExists(#path_server_directory# & "\thumb\" )> 
        <cfset folder_thumb = "thumb">
        <cfelse>
        <cfset directoryCreate(#path_server_directory# & "\thumb\")>
        <cfset folder_thumb = "thumb">
        </cfif>
        <cfimage action="resize" height="50" width="" 
        source="#folder_user_cacedipi#\#return_image_file_name#" 
        destination="#folder_user_cacedipi#\#folder_thumb#\#return_image_file_name#" overwrite="yes" />
         --->
<cfelse> 
 
      <cflocation url="#referer_cfm_page#?msg=not_post"/> <!--- fail, form not submitted --->


</div>
<!---END of file--->

<!--- 
    <cffunction name="dumpAll">
        <cfdump var='#cgi#'>
        <cfdump var="#form#"> 
        <cfdump var="#variables#"> 
        <cfdump var="#request#">
    </cffunction>
    <cfset dumpAll()>
--->
<!---
    <cfabort> 
    Create Image Thumbnail    
    <cfif directoryExists(#path_server_directory# & "\thumb\" )> 
        <cfset folder_thumb = "thumb">
    <cfelse>
        <cfset directoryCreate(#path_server_directory# & "\thumb\")>
        <cfset folder_thumb = "thumb">
    </cfif>
    <cfimage action="resize" height="50" width="" 
             source="#folder_user_cacedipi#\#return_image_file_name#" 
             destination="#folder_user_cacedipi#\#folder_thumb#\#return_image_file_name#" 
             overwrite="yes" />
--->
