How to change the uploads directory
luisgzafra
New
Hello, i change in conf/constants.php the constant PATH_UPLOADS, it works, up well, etc. But it don't show good the url. ¿How i can change the url of uploads directory?
Thanks!
0
Comments
this not a good idea, you would have to change the core, and you would break a bunch of plugins no doubt.
Why do you want to do this? Make sure you set folder permissions diligently, and restrict the types of uploads with
$Configuration['Garden']['Upload']['MaxFileSize'] = '50M'; $Configuration['Garden']['Upload']['AllowedFileExtensions'] = array('jpg','jpeg','gif','png');you can always change the folder but you will have to use server rule to direct it.
or use a junction point.
can you explain
it really kinda depends on the intent of changing the location. if you want the content to be stored elsewhere because, for instance you are short of drive space on the drive that hosts your webservices you can use a junction to point the uploads directory to a new drive somewhere else.
thx.
Hi. I'd like to change the uploads directory too.
There are 2 installations of Vanilla Forums on my server, each pointing to a different domain name. However both installations share the same database. The only problem I've encountered so far is when users upload new profile pics.
Plugins shouldnt be a problem as each installation has the same ones installed.