Use relative paths instead of absolute with file select
Hi,
I have an issue with the way 'select files' works with Low Variables. We have a staging server, where all of the settings and files are changed/reviewed before pushing to a live server (where we do not use /admin.php). Because the file select is saving the variable with an absolute path, instead of a relative one, when we push updates to the production server, the variable references the staging server (which blocks all IPs except for a very few). This seems to be an easy fix, would you be able to modify the plugin to only store the relative path to the asset, as does the channel entries tag when uploading / referencing content? Or would you be able to tell me where I might make this change on my own if you feel that most users would not benefit from this change? Thanks in advance
Replies
Low 13 Jun 2014 06:47
Select Files takes the URL from the upload preferences. If you make that relative, the file URLs will be, too.