Page 1 of 1

[BUG] Icon Path Incorrect

Posted: 09 Sep 2011, 10:21
by mdriess
I have my absolute path setup in the options of Phoca download, which works great for files, but I think it's messing up custom icons - when I uploaded an icon, the img src that it tries to display is /home/myusername/public_html/images/phocadownload/icon.jpg

However, the upload works fine and if I modify the path after I click the image (it displays the image as broken, but you can still click the link to insert it as an icon) it will work fine. Does this make sense?

Re: [BUG] Icon Path Incorrect

Posted: 12 Sep 2011, 19:21
by Jan
Hi, yes, the images cannot be displayed from the destination behind public_html ... there only files can be downloaded - but html cannot work with them and it is not allowed of course.

Jan

Re: [BUG] Icon Path Incorrect

Posted: 12 Sep 2011, 19:38
by mdriess
Right - what I'm saying is that when absolute path is set to a custom value, it messes up how icons are loaded by the script.

They are uploaded to the right directory (public_html/images/phocadownload), but the script tries to add /home/myusername/public_html in front of the source of the image when you select it as the custom icon for a download item.

Does this make sense?

Thanks

Re: [BUG] Icon Path Incorrect

Posted: 13 Sep 2011, 00:39
by Jan
Hi, confirmed, the path to images is wrong in case the custom folder will be selected

Thank you for the info, will be solved in next version.

Jan

Re: [BUG] Icon Path Incorrect

Posted: 13 Sep 2011, 00:45
by mdriess
Sure thing, thanks for the great script!

Re: [BUG] Icon Path Incorrect

Posted: 24 Oct 2011, 23:14
by Jan
Should be fixed in 2.1.2

Jan