I have created a library page on one of my sites. Everything tests fine on my machine but when I uploaded it to the server, none of the files that are uploaded via the browser are accessible. When you click on their hyperlink you either get the 404 or an error that your systems settings need to be changed.<br><br>the code for this page (the open file page) is:<br><br><cfif not isdefined("session.authenticated"
><br> <cfoutput><br> You are not authenticated, or your session has timed out<br> </cfoutput><br> <cfabort><br></cfif><br><!--- security check ---><br><CFIF Find( '..', URL.ServerFile )<br> or Find( '\', URL.ServerFile )<br> ><br> Error: You are not allowed to access this file<br> <CFABORT><br></CFIF><br><br><br><br><!--- parameters ---><br><CFSET LibraryDirectory = "d:\webserver\Site-Blauvelt.com\ FilePath = "#LibraryDirectory#\#URL.ServerFile#"><br><br><br><!--- extract the file extension ---><br><CFSET SeparatorPos = Find( '.', Reverse(URL.ServerFile) )><br><CFIF SeparatorPos is 0> <!--- separator not found ---><br> <CFSET FileExt = ''><br><CFELSE><br> <CFSET FileExt = Right( URL.ServerFile, SeparatorPos - 1 )><br></CFIF><br><br><br><!--- find the proper MIME type ---><br><CFIF FileExt is ''> <CFSET FileType = "unknown"><br><CFELSEIF FileExt is 'pdf'> <CFSET FileType = "application/pdf"><br><CFELSEIF FileExt is 'aif'> <CFSET FileType = "audio/aiff"><br><CFELSEIF FileExt is 'aiff'> <CFSET FileType = "audio/aiff"><br><CFELSEIF FileExt is 'art'> <CFSET FileType = "image/x-jg"><br><CFELSEIF FileExt is 'cil'> <CFSET FileType = "application/vnd.ms-artgalry"><br><CFELSEIF FileExt is 'gif'> <CFSET FileType = "image/gif"><br><CFELSEIF FileExt is 'htm'> <CFSET FileType = "text/html"><br><CFELSEIF FileExt is 'html'> <CFSET FileType = "text/html"><br><CFELSEIF FileExt is 'wk4'> <CFSET FileType = "application/wk4"><br><br><CFELSE> <CFSET FileType = "unknown"><br></CFIF><br><br><br><!--- return requested file ---><br><CFCONTENT TYPE="#FileType#" <br> FILE="#FilePath#"<br>><br><br>You can access the page by going to: <A HREF=" TARGET="_new"> user name is Penndot and the password is Guest001.<br><br>I am new to CF and am working hard to learn it and get this site up and running at the same time. Any suggestions would be appreciated.<br>