This forum has moved to a new location and is in read-only mode. Please visit talk.octobercms.com to access the new location.
I was messing around with some of the path helpers and am curious about a couple things.
My document root path is '/var/www/site_name/october'.
base_path() returns '/var/www/site_name/october'.
storage_path() returns /var/www/site_name/october/storage'.
So far, so good. Now, what about these ones?
app_path() returns '/var/www/site_name/october/app' This directory does not exist, expected to see '/var/www/site_name/october/storage/app'
public_path() returns '/var/www/site_name/october' Exists, but is not the public folder, expected to see '/var/www/site_name/october/storage/app/uploads/public'
And my personal favorite...
uploads_path() returns an error: "Class path.uploads does not exist".
I'm running to latest version. Any ideas why I'm getting these differences?
Last updated
Hi ndcisiv - did you manage to get any further with this?
I too am getting the Class path.uploads does not exist error when using uploads_path()
I've just been basing everything off the storage_path(). So storage_path('/app/uploads/') and then add from there.
1-3 of 3