How to Remove Alternate Storage Directory

Permalink
I experimented with Alternate Storage Directory and would now like to remove the Alternate Storage Directory that I added. I go to File Storage Locations and remove the path and name but when I click Save the path and name come right back.

Is there a way to remove the Alternate Storage Directory?

thank you, Chuck

GetSirius
 
mhawke replied on at Permalink Reply
mhawke
You need to add the default back into the top box but it's not easy to find out what the default is. I did a little experimenting and found that this line of code will echo what needs to go in that box. Temporarily place this line of code just below the <body> tag of your theme file and it should show up when you view the page or you might need to find it with 'view source':

<?php echo $_SERVER['DOCUMENT_ROOT'].'/files';?>


Cut 'n paste the echoed output into the top box on the Alternate Locations dialog and see what happens.
GetSirius replied on at Permalink Reply
GetSirius
I can see the default path displayed in the same dialog box where you enter the alternate. I added your line of code but that comes up with a directory that is outside of public_html/hodan where the concrete5 website is located. I put that path in anyway and concrete5 created a /files folder in my website root, outside of the installation. It appears that the default would be hodan/files but when I put that in and check a file in file manager I get the two choices, both the same location. I suppose that is not a big deal but I thought this might possibly be the cause of my issue with images not showing when I edit a content block.

If I knew where to look I would guess that the alternate location could be removed completely using phpMyAdmin Anyone have a hint about that?
mhawke replied on at Permalink Reply
mhawke
Sorry, I just tried my trick on a site that is set up off the main domain such as yours is and you would need to add '/hoden' before '/files' since the DOCUMENT_ROOT just gets you to your root.
GetSirius replied on at Permalink Reply
GetSirius
Yes, I figured that was how it went. I guess it is ok as it is but I still have the option of two storage locations, both pointing to the same place.

Just picky of me I suppose but I would like to remove the second option.
GetSirius replied on at Permalink Reply
GetSirius
Found it!
Used phpMyAdmin and found FileStorageLocations then deleted the row that had the name of my Alternate Storage Directory.

No more Alternate Storage Directory!
mhawke replied on at Permalink Reply
mhawke
Yes, I mentioned this on the other thread we have going on this issue. Remember... one thread per issue.

Glad you sorted it out. There really should be a way to delete old locations through the dashboard.