In FarCry 7 we’ve introduced CDN configuration, which lets you change where files are stored. For example you can put something like this in _serverSpecificVarsAfterInit.cfm:
and FarCry will store and serve secure files from there.
In previous versions of FarCry (or if you don’t want to move the files), you need to enforce the security in the web server by blocking direct access to /farcry/projects/yourproject/securefiles
The media paths in application.path are deprecated - I should probably remove them from core. As of 7 FarCry refers to every uploaded file in terms of “locations”.
Files uploaded with the file formtool are stored in the “privatefiles” and “publicfiles” locations, depending on whether the property has ftSecure="true" or not, image formtools put files in the “images” location, etc. Every file operation (should) be going through the application.fc.lib.cdn API. That goes for everything from checking if a file exists (ioFileExists) to getting a URL for serving a file (ioGetFileLocation).
If you need to do any file management in your own code, I recommend you also use that API. You’ll thank me if you ever have to move your media to S3 or a FTP CDN server.