Topic: I can't download images

Everything is ok, but when i click download button for an image, a dialog appears but download doesn't start.
With Firebug I can see the url for download isn't right, because it doesn't take care of flashvar.baseURL and try to download from current directory.
For example: (_root)/gallery/image1.jpg instead of (_root)/media/imgs/demo1/image1.jpg


My gallery is displayed at: (_root)/gallery/index.php
And my images are under: (_root)/media/imgs/*

So I have:
(_root)/gallery/simpleviewer.swf
(_root)/media/imgs/demo1/gallery.xml
(_root)/media/imgs/demo1/image1.jpg

My gallery.xml contains:
<image imageURL="image1.jpg"><caption></caption></image>

My index.php contains a script with:
var flashvars = {};
flashvars.baseURL = "/media/imgs/demo1/";
flashvars.galleryURL = "gallery.xml";
var params = {};
params.bgcolor = "F4E7BD";
params.allowfullscreen = true;
params.allowscriptaccess = "always";
swfobject.embedSWF("simpleviewer.swf", "flashContent", "700", "650", "9.0.124", false, flashvars, params);

So, how can i set the baseURL for downloading ?

Re: I can't download images

This issue was fixed in SimpleViewer-Pro v2.1.1. Please upgrade to the latest version. http://www.simpleviewer.net/simpleviewe … grade.html

Felix Turner
SimpleViewer Support Team.

Re: I can't download images

Thx Felix, but I upgraded to 2.1.1 and the problem remains.

When I try to download an image the url is from current directory and it should be from baseURL.

Re: I can't download images

Hi,

I've logged this as a bug: Using the 'baseURL' parameter causes image download button to fail. We will fix this in the next version.

In the mean-time there are 2 workarounds to avoid using the 'baseURL' option.
1) Use the full relative or absolute path to your images.
2) Use the iFrame embed method described here: http://www.simpleviewer.net/simpleviewe … l#external

Felix Turner
SimpleViewer Support Team.

Re: I can't download images

Ok, thx.

I hope you can fix it in the next version. I expect to it ;-)

Re: I can't download images

hi,

this issue is fixed in SimpleViewer v2.1.2. http://www.simpleviewer.net/news/?p=370

Felix Turner
SimpleViewer Support Team.

Re: I can't download images

I've spend 4 attemps to download from fatfreecartpro.com, but finally got it.

Ok, verified ;-) Thx!