By effebi on
I set up many Drupal sites with multisite sysem
I just noticed every site save in the wrong place uploaded files, I mean
installation directory is:
/home/user/drupal/
sites save files in
/home/user/drupal/file
instead of
/home/user/drupal/sites/domain1.com/sites/
or
/home/user/drupal/sites/domain2.com/sites/
etc..
any idea?
thanks
Comments
The "file system path"
The "file system path" setting is always relative to the folder that Drupal is installed in. So you need to specify "sites/domain1.com/files", not just "files" on the settings page.
I agree that it would make more sense if the path entered was always assumed to be relative to the relevant site folder.
gpk
----
www.alexoria.co.uk
thanks
thank you so much :)
Nay probs
Nay probs
gpk
----
www.alexoria.co.uk
File system path
I have just moved to a multisite install and am facing the same problem. I did have an additional domain as a separate install of Drupal, now its part of a multisite install. The database is unchanged from when it was a single site install.
Eg
/public_html/sites/mydomain.com
/public_html/sites/mydomain.com/files
etc
Everything was going swimmingly until I noticed my attached images weren't working. I had obviously copied all the images from the old 'files' directory to the new 'files' directory. I am using ImageCache and Inline to automatically inline images on nodes. I would have thought the File system path: of simply 'files' should work!
So I saw this post and set my File system path to 'sites/falconpropertyservices.com/files', and now my thumbnails work on existing nodes:
http://www.mydomain.com/sites/mydomain.com/files/imagecache/thumbnail/fi...
However clicking on them gives:
http://www.mydomain.com/files/image.jpg
which fails, page not found.. :(
Created new content and upload a file. This goes into:
http://www.mydomain.com/sites/mydomain.com/files/newimage.jpg
But the path to the thumbnail is now:
http://www.mydomain.com/sites/mydomain.com/files/imagecache/thumbnail/si...
And that just not correct. Imagecache doesn't look like its even created a thumbnail. The link surrounding the thumbnail however is correct:
http://www.falconpropertyservices.com/sites/falconpropertyservices.com/f...
So if anyone can help me get this working I would appreciate it a great deal!
-Chris
Some success
I cleaned out the imagecache tables in the db and removed the imagecache folder. After that it started working ok, though the thumbnail paths are:
http://www.mydomain.com/sites/mydomain.com/files/imagecache/thumbnail/si...
Which is dumb! Why can't Drupal assume that the 'files' folder is relative to the sites/mydomain.com folder?
I'm having the same problem
I'm having the same problem and haven't found a fix for it yet. It doesn't seem to want to initialize the image cache.
---
I work at The Jibe Multimedia, Inc., a Vancouver Drupal eCommerce Web Agency.