Im using cffile to allow users to upload pictures. For the "destination" attribute i want to take the path to the template and add the filename to it. The problem is that when i use <cfset directory="#path_translated#newname.jpg"> i get the path INCLUDING the name of the template at the end and then "newname.jpg". For example, i tested this with a template named "test.cfm" and the result was this:
directory=D:\Inetsrv\ directoru\subdirectory\mphotos\test.cfmnewname.jpg
Is there a way to get just the path up to, but not including, the template name?
directory=D:\Inetsrv\ directoru\subdirectory\mphotos\test.cfmnewname.jpg
Is there a way to get just the path up to, but not including, the template name?