I have a Drupal site that accepts private file uploads from some authenticated users.
The directory where those files are stored is privatefiles and it is located above the www directory, at the same level than the public_html directory. In the file system, the private file system path is defined as "../privatefiles"
That seems to work well.
I But I am transferring the site to another hosting company and putting it there as an add on domain to an existing one. The uploaded private files are no longer visible.
To make the add on site, I had to create another directory. The new directory is example1.com/example2.com If I move the private file directory one level down (i.e. under the public_html directory, then the private files become visible again.)
The only problem is that those files are now accessible from the web.
Does anyone know why this is so? How can I keep the private files at the same level? Should the "../privatefiles" be written differently? Or is this issue a limitation imposed by the new hosting company?
Any pointer for this would be greatly appreciated. :)