Issues with File Locations.

Permalink
Hi. I am uploading files using the file manager and have noticed (since the last concrete5 update to 5.3.2) that the files are copied to random locations within the '/files' folder in my directory.

These folders seem to be randomly generated, and there are dozens of them. When I upload a new file, it creates 2 to 3 more of these folders.

An example of one of these folders would be '/files/3312/5604/9457/'. If I upload a new file with the same name, it will create more folders, adding to the confusion. This is a real pain when uploading files and trying to link them in some of my pages.

Is there a way to turn this off? I remember the version prior to the update allowed me to link the file names without having to include 2 to 3 sub folders. I would like my files to be copied to one general location, of possible.

Thanks,

Nick

nick82
 
frz replied on at Permalink Reply
frz
you say pain & confusion, I say EXTRA AWESOME!

Files now have versions and permissions in them, this is extra awesome. You shouldn't be directly linking to files using the hard coded URL, you should use the concrete5 toolbar in the content block to place a link to file. It will wrap the call through a php script that makes sure you're grabbing the latest version.

Why? Well now you can replace a file using the file manager and ALL the references will be updated. If you've ever had a client give you a "slightly new version of that PDF" - this will save a lot of pain. You also get statistics on how much the file has been downloaded and to what IP's...
Etc.

Btw, the directories are actually based on time, they're not random. We got to this solution after having one huge files directory where we had to prepend a unique number so files wouldn't overwrite each other.
Remo replied on at Permalink Reply
Remo
I agree with frz. I often makes sense to have it..

But I also agree that a switch to disable this behaviour would be nice.

Right now you have to hack into the code a bit. Check this:http://www.concrete5.org/community/forums/installation/plesk_safe_m...
nick82 replied on at Permalink Reply
nick82
Thanks guys. I did end up using the toolbar to add in the file, and it is working great. I guess I didn't sit there and get to know the toolbar a bit better before bashing the new system. I do now realize what the folders mean but yesterday, they were just random folders to me.

Thanks again. :)