Question
<cflocation to a file located 'above' the httpdocs folder
hi guys, i got a tricky one here...
users can upload word documents (.doc) to my server (using cffile).
the idea is to only allow certain users access to those documents, therefore i am thinking that storing them 'above' the httpdocs folder is probably a wise move (that way no one can get to them using httpaccess, right?)
i can write the files to my desired location using <cffile action="copy"... just fine
the problem arrises in giving (the authorised) users access to those documents.
i want them to be able to download those documents via their browser and had planned to do so using <cflocation url="#absoloute-path-to-required-document-on-server.doc#" >
it seems this works fine if the file is within the httpdocs folder, but not if it's above it..
does anyone have any suggestions?
i'd be very grateful of any input whatsoever (if you think i'm tackling this the wrong way for example, i won't be offended :)
thanks very much indeed.
kind regards
Nick
users can upload word documents (.doc) to my server (using cffile).
the idea is to only allow certain users access to those documents, therefore i am thinking that storing them 'above' the httpdocs folder is probably a wise move (that way no one can get to them using httpaccess, right?)
i can write the files to my desired location using <cffile action="copy"... just fine
the problem arrises in giving (the authorised) users access to those documents.
i want them to be able to download those documents via their browser and had planned to do so using <cflocation url="#absoloute-path-to-required-document-on-server.doc#" >
it seems this works fine if the file is within the httpdocs folder, but not if it's above it..
does anyone have any suggestions?
i'd be very grateful of any input whatsoever (if you think i'm tackling this the wrong way for example, i won't be offended :)
thanks very much indeed.
kind regards
Nick
