I think the documentation is very confused about the
images (or else the docs are fine but **I** am very
confused). I can get the images dialog box to open
from the control, but after that it goes haywire.
[a] The upload works in the sense that it uploads the
images to the correct place but then an error appears in
the preview window.
[b] no image names appear in the list of images.
[c] When i select a directory in the drop down list of the
images popup, it refreshes and goes back to the first
name on the list again.
[d] I had to change a line in the file img_library.cfm: at
line 114 Changed
#application.SPAW_Constants.spaw_dir_absolute# to
#application.SPAW_Constants.spaw_images_absolute#
because it didn't use the variable set up specifically for
that purpose.
Why doesn't my system work?
Cheers
Mike Kear
Windsor, NSW, Australia
AFP Webworks.
My site structure is like this (in part):
/
/images
/images/newreleases
/images/newrelease/thumbnails
...
/spaw-cf
/spaw-cf/(rest of this is as unpacked)
...
Here are the relevant lines from my config file:
// base url for images
application.SPAW_Constants.spaw_base_url
= "http://bluegrass.org.au/";
application.SPAW_Constants.spaw_root = "/spaw-cf/";
application.SPAW_Constants.spaw_document_root =
ExpandPath(application.SPAW_Constants.spaw_root);
application.SPAW_Constants.spaw_dir_get_relative
= "\spaw-cf"; // use backslashes for Windows
application.SPAW_Constants.spaw_dir_absolute
= "D:\SiteData\webppliance\conf\domains\btcmsa\Inetpu
b\wwwroot\spaw-cf\"; // absolute path to spaw
application.SPAW_Constants.spaw_images_absolute
= "D:\SiteData\webppliance\conf\domains\btcmsa\Inetpu
b\wwwroot\images\"; // absolute path to images
...
// image libraries
application.SPAW_Constants.spaw_imglibs = ArrayNew
(1);
application.SPAW_Constants.spaw_imglibs[1] =
StructNew();
application.SPAW_Constants.spaw_imglibs[1]["value"]
= "images";
application.SPAW_Constants.spaw_imglibs[1]["text"]
= "General";
application.SPAW_Constants.spaw_imglibs[2]["value"]
= "images/newreleases";
application.SPAW_Constants.spaw_imglibs[2]["text"]
= "New Releases";
application.SPAW_Constants.spaw_imglibs[3]["value"]
= "images/newreleases/thumbnails";
application.SPAW_Constants.spaw_imglibs[3]["text"]
= "Thumbnails";
Logged In: YES
user_id=854226
One item at a time:
[a] The upload is working... that is a good sign. The error
appear in the preview because SPAW cannot find the image
that has just been uploaded. The reason is because, while
checking your spaw_control.config.cfm we noticed that none
of your spaw_imglibs "value" variables have a trailing slash.
You need that additional trailing slash for it to work.
[b] We have just noticed that File Release v1.0.5 had a
mistake (one of which you already discovered in line 114 of
img_library.cfm and the other in line 196 where you need to
also change application.SPAW_Constants.spaw_dir_absolute
to application.SPAW_Constants.spaw_images_absolute
[c] and [d] are related to the above issues. We will be
uploading this fix for other users to benefit.
Attached is the new img_library.cfm as it will be in the next
file release.
We are trying to make SPAW-CF as cross-platform (Linux CF
vs Windows CF... Shared-server vs Dedicated Server) as
possible and mappings behave differently from scenario to
scenario so sometimes bugs pop up.
We hope this helps to fix your upload situation.
Regards
Mauricio Giraldo
Image library as it is in v1.0.7
Logged In: YES
user_id=854226
The image dialog is one of the most complex parts of SPAW-
CF for it has a mixture of CF-generated javascript, CFFILE
and CFDIRECTORY tags and CF mapping issues. Thank you for
thoroughly testing SPAW-CF. We hope v1.0.7 will be the one
that will enable you to manage your images as expected.
Regards
Mauricio