home *** CD-ROM | disk | FTP | other *** search
- <CFSET RootPath = Reverse(Replace(Reverse(GetTemplatePath()),Reverse("admin\#GetFileFromPath(GetTemplatePath())#"),""))>
-
- <CFFILE ACTION="UPLOAD"
- FILEFIELD="UploadedFile"
- DESTINATION="#RootPath#binarydata"
- NAMECONFLICT="SKIP">
-
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
-
- <HTML>
- <HEAD>
- <TITLE>Untitled</TITLE>
- </HEAD>
-
- <BODY>
-
- <CFIF File.FileExisted>
-
- <CFOUTPUT>
- <SCRIPT LANGUAGE="JAVASCRIPT">
- alert('The file "#File.ClientFile#"\nalready exists on the server.\n\nPlease rename your file and try again.');
- location.replace('modifycontent.cfm?ContentIDList=#ContentIDList#&C#ContentIDList#=#URLEncodedFormat("|0")#');
- </SCRIPT>
- The file #File.AttemptedServerFile# already exists on the server.<BR>
- Please rename your file and try again.
- </CFOUTPUT>
-
- <CFELSE>
-
- <CFLOCATION URL="modifycontent.cfm?ContentIDList=#ContentIDList#&C#ContentIDList#=#File.ServerFile#" ADDTOKEN="NO">
-
- </CFIF>
-
- </BODY>
- </HTML>
-