I'm uploading via ftp to media.example.com, and to the path public_html/foo/bar; but the /bar directory is accessible at http://media.example.com/bar

My settings:

FTP hostname:
media.example.com

FTP directory:
./public_html/foo/bar

URL prefix:
http://media.example.com/bar

This leads to the file being given the the URL "http://media.example.com/bar/public_html/foo/bar/filename.ext" in the "Storage" action, when it should be "http://media.example.com/bar/filename.ext". Shouldn't it? Or am I doing something wrong?

Comments

jsit’s picture

Update: If anybody else is experiencing this issue, I realized I could "solve" it by creating a new FTP user who only has access to the directory in which I want to store the files, meaning I can just put "bar" in the FTP directory instead of "./public_html/foo/bar", and it works.