Hey gang.
I’m setting up relative paths for all my file upload directories. Or trying. I’m also masking my CP.
If I use the native file upload method, everything works fine.
So my file upload server path is (./files/pages).
URL is (/files/pages).
With native File, this works fine.
However, using SafeCracker File, there’s some sort of bug with how it accesses relative file paths.
Erik Reagan (so helpful that guy!) helped me deduce that if I comment out the conditional on line 574 of ft.safecracker_file.php
if ( ! preg_match('#^(/|\w+:[/\\\])#', $server_path))
{
$server_path = realpath(APPPATH.'../'.$server_path).'/';
}I’m able to see the files I’m looking for in the file upload directory I’ve specified. But that was only a debugging test.
I’ve switched to the regular file upload method for the time being.
Any help, or notes on this?
Thanks!