Lukas Renggli wrote:
File uploading
doesn't seem to work on this image.
I don't know why, I am not good enough to fix this bug :-[
Please check out this mail:
It appears that MAExternalFileModel uses a
dictionary to maintain the
directory location
classPool: a Dictionary(#BaseDirectory->UnixFileDirectory on
'/my/path/to/files' #BaseUrl->nil)
This is part of the file-model of Magritte. Some time ago I changed
this model to allow storing files externally as opposed to enforce the
use of a ByteArray within the image. The class MAExternalFileModel has
a two class variables (this is not really a dictionary) that allow to
configure these external files further. There are accessors on the
class-side that you can use to configure these settings:
MAExternalFileModel class>>baseDirectory: aStringOrDirectory
"Defines the base-directory where the files are stored. This
defaults
to a subdirectory of the current image-location."
MAExternalFileModel class>>baseUrl: aString
"Defines the base-URL where the files are served from, when
using an
external web server. This setting is left to nil by default, causing
the files to be served trough the image."
my questions are does anyone know if there are
other gotchas about
moving the image? How should I change this? Is there a global way of
changing the location for access? I have a feeling that there will be
more walkbacks because I moved the pier image from one server to
another.
No, I don't think so. Copy the base-directory to your new server and
update the setting if necessary.
I assume that this has nothing to do with WAFileLibrary?
Now, with using ProxyPass and ProxyPassReverse that I'm only using in
apache (no rewrite rules) I have no idea where WAKom is looking for my
css files. No matter what pointer I place in the method styleCss, it
doesn't seem to find them (I have an exact location off of the directory
the image is located). In fact, i don't even think styleCss is being
accessed. Yes, I did add selectorsToInclude method in my own FileLibrary.
Also, bypassing apache (
http://my.domain.com:9999/seaside/pier) finds no
css files either.
Can others post their apache settings and also where they place their
css files on your server? That might help. Or, what do you do for
accessing css files? Obviously, I'm confused once again. This just seems
a bit too complicated.