Rank: Member
Groups: Member
Joined: 12/17/2010(UTC) Posts: 24
Was thanked: 1 time(s) in 1 post(s)
|
I'm trying out your filedownloader but can't get it to work. I gets loaded, I can see the download-button, and when I click it, it pops a message saying "No files to download". I'm using firefox 10.0.2 and there are no javascript-errors. Also tried this in IE 9. Here is the code: Code:
function setFilesToDownload(){
var downloader = getFileDownloader("FileDownloader");
downloader.DownloadFileAdd("*/*", 622245, '2012 lamborgini aventador 1920x1200.jpg', 'http://domain.com/image_test/?type=shared&image=21271&code=8178d58b86d06d8eb3334f024cdc50e7');
downloader.DownloadFileAdd("*/*", 488601, '2010 porsche gt3 rs 1600.jpg', 'http://domain.com/image_test/?type=shared&image=21270&code=0e4b63869740f6db450a11417330512f');
}
var fd = new FileDownloaderWriter('FileDownloader', 145, 44);
fd.addParam("BackgroundColor", "#F5F5F5");
fd.activeXControlCodeBase = '/js/aurigma/downloader/7.0.3/FileDownloader7.cab';
fd.activeXControlCodeBase64 = '/js/aurigma/downloader/7.0.3/FileDownloader7_x64.cab';
fd.javaAppletEnabled = true;
fd.javaAppletCodeBase = '/js/aurigma/downloader/7.0.3';
fd.addParam('ButtonDownloadText', 'Download files');
fd.addParam('LicenseKey', 'XXXXX-XXXXX-XXXXX-XXXXX-XXXXX-XXXXXX');
fd.fullPageLoadListenerName = "setFilesToDownload";
fd.writeHtml();
|
|
|
|
Rank: Advanced Member
Groups: Member
Joined: 5/29/2010(UTC) Posts: 1,310
Thanks: 8 times Was thanked: 111 time(s) in 111 post(s)
|
Hello Øyvind, You should set complete url with file name, e.g.: Code: downloader.DownloadFileAdd("*/*", 258697, '2010 porsche gt3 rs 1600.jpg', 'http://localhost/fd7_test/image_test/2010 porsche gt3 rs 1600.jpg');
Also, please be sure that all the files to download are located in the specified url. I created simple application based on your code. It works for me. I attached it for your reference. Please download and try it out. |
Best regards, Dmitry Obukhov
Technical Support. Aurigma, Inc.
|
|
|
|
Rank: Member
Groups: Member
Joined: 12/17/2010(UTC) Posts: 24
Was thanked: 1 time(s) in 1 post(s)
|
We don't link directly to the image files on our website because the images are uploaded by our users and is private. Therefore we need to check if the current logged in user has access to the image before showing it, and so we have a layer of servers between the user and the image-file. So the url is correct. Anyway, I tried with a standard url too, like http://localhost/testimage.jpg, and got the same messsage, "No files to download". Although your attached example does work on my machine.
|
|
|
|
Rank: Member
Groups: Member
Joined: 12/17/2010(UTC) Posts: 24
Was thanked: 1 time(s) in 1 post(s)
|
Turned on some more debugging and got this message: [url of image] was not added to the file list: file host name is not registered with license key. Might be some cross-domain issues as we have our images on a different url than the website. Edited by user Tuesday, February 21, 2012 1:37:35 AM(UTC)
| Reason: Not specified
|
|
|
|
Rank: Advanced Member
Groups: Member
Joined: 5/29/2010(UTC) Posts: 1,310
Thanks: 8 times Was thanked: 111 time(s) in 111 post(s)
|
Quote: We don't link directly to the image files on our website because the images are uploaded by our users and is private. Therefore we need to check if the current logged in user has access to the image before showing it, and so we have a layer of servers between the user and the image-file. So the url is correct. Please try standard samples of File Downloader 7 which is located in the SDK. They show how to use the downloader as you need. Quote: Turned on some more debugging and got this message: [url of image] was not added to the file list: file host name is not registered with license key. Might be some cross-domain issues as we have our images on a different url than the website. If you host the downloader on a domain different from a domain where files located, you should have two license keys for both domains. However, if you use trial license key, it should work in this situation fine. Please clarify it and share the license key you use now. |
Best regards, Dmitry Obukhov
Technical Support. Aurigma, Inc.
|
|
|
|
Rank: Member
Groups: Member
Joined: 12/17/2010(UTC) Posts: 24
Was thanked: 1 time(s) in 1 post(s)
|
The license I use is actually "XXXXX-XXXXX-XXXXX-XXXXX-XXXXX-XXXXXX". We haven't ordered any license yet.
|
|
|
|
Rank: Advanced Member
Groups: Member
Joined: 5/29/2010(UTC) Posts: 1,310
Thanks: 8 times Was thanked: 111 time(s) in 111 post(s)
|
Hello, I provided you with the trial license key for File Downloader 7. Please read PM. The key will be valid until April 22, 2012. Replace "XXXXX-XXXXX-XXXXX-XXXXX-XXXXX-XXXXXX" with the trial key. |
Best regards, Dmitry Obukhov
Technical Support. Aurigma, Inc.
|
|
|
|
Rank: Member
Groups: Member
Joined: 12/17/2010(UTC) Posts: 24
Was thanked: 1 time(s) in 1 post(s)
|
|
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.