Hello,
When I try to view an image by pointing my browser to:
http://server.com/drupal/files/ftp-uploads/foo.jpg
I get a Drupal page that says "page not found". I think I know why this happens, but I don't know the solution. The Drupal "files" directory is divided into two sub-directories:
uploads/ ftp-uploads/
Drupal uploads files to "files/uploads" and anything I upload through FTP I upload to ftp-uploads. I just like this organization. The files in the first directory work fine. It is the ones in the second directory, the FTP one, that give the "page not found" error.
MY THEORY: Drupal must have a setting somewhere that tells it that any path that matches files/uploads/* shall be interpreted as a real file path.
I need to find out where this setting is, and change it to "files/*". But I don't know where that setting is. Perhaps a htaccess file
- I cannot prove the ftp uploads elsewhere. I am migrating to Drupal 5 and the existing site already has dozens of links that would be broken if I moved the files.
- I really really don't want to have Drupal put its files directly under 'files/'. I am moving to a new uploads module that creates a directory for every user. With a few thousand users, the "files/" directory would become impossible to navigate for me.
Thanks for the help.
Daniel.
I would guess you have set "Download Method" on the settings page 'admin/settings/file-system' to 'Private - files are transferred by Drupal'. In that case, the described behavior occurs. Check this please, and if it is the case, change the setting. Otherwise it might be a .htaccess gone bad, as Drupal doesn't intervere with the file-system in that case.
-- Maarten
On Sat, Sep 6, 2008 at 2:34 PM, Daniel Carrera daniel.carrera@zmsl.comwrote:
Hello,
When I try to view an image by pointing my browser to:
http://server.com/drupal/files/ftp-uploads/foo.jpg
I get a Drupal page that says "page not found". I think I know why this happens, but I don't know the solution. The Drupal "files" directory is divided into two sub-directories:
uploads/ ftp-uploads/
Drupal uploads files to "files/uploads" and anything I upload through FTP I upload to ftp-uploads. I just like this organization. The files in the first directory work fine. It is the ones in the second directory, the FTP one, that give the "page not found" error.
MY THEORY: Drupal must have a setting somewhere that tells it that any path that matches files/uploads/* shall be interpreted as a real file path.
I need to find out where this setting is, and change it to "files/*". But I don't know where that setting is. Perhaps a htaccess file
- I cannot prove the ftp uploads elsewhere. I am migrating to Drupal 5
and the existing site already has dozens of links that would be broken if I moved the files.
- I really really don't want to have Drupal put its files directly under
'files/'. I am moving to a new uploads module that creates a directory for every user. With a few thousand users, the "files/" directory would become impossible to navigate for me.
Thanks for the help.
Daniel.
[ Drupal support list | http://lists.drupal.org/ ]
The download method is not set to private.
Now, here is something really strange: It magically started working!
I don't think I did anything. I changed the URL of the site:
http://foo.com/test-site/ -> http://foo.com/drupal
But I wouldn't think that this would make the system suddenly decide to start working. Well, at least it works now. Thanks for the help.
Daniel.
Maarten van Grootel wrote:
I would guess you have set "Download Method" on the settings page 'admin/settings/file-system' to 'Private - files are transferred by Drupal'. In that case, the described behavior occurs. Check this please, and if it is the case, change the setting. Otherwise it might be a .htaccess gone bad, as Drupal doesn't intervere with the file-system in that case.
-- Maarten
On Sat, Sep 6, 2008 at 2:34 PM, Daniel Carrera <daniel.carrera@zmsl.com mailto:daniel.carrera@zmsl.com> wrote:
Hello, When I try to view an image by pointing my browser to: http://server.com/drupal/files/ftp-uploads/foo.jpg I get a Drupal page that says "page not found". I think I know why this happens, but I don't know the solution. The Drupal "files" directory is divided into two sub-directories: uploads/ ftp-uploads/ Drupal uploads files to "files/uploads" and anything I upload through FTP I upload to ftp-uploads. I just like this organization. The files in the first directory work fine. It is the ones in the second directory, the FTP one, that give the "page not found" error. MY THEORY: Drupal must have a setting somewhere that tells it that any path that matches files/uploads/* shall be interpreted as a real file path. I need to find out where this setting is, and change it to "files/*". But I don't know where that setting is. Perhaps a htaccess file - I cannot prove the ftp uploads elsewhere. I am migrating to Drupal 5 and the existing site already has dozens of links that would be broken if I moved the files. - I really really don't want to have Drupal put its files directly under 'files/'. I am moving to a new uploads module that creates a directory for every user. With a few thousand users, the "files/" directory would become impossible to navigate for me. Thanks for the help. Daniel. -- [ Drupal support list | http://lists.drupal.org/ ]