Topic: File attachments

Hello,

I am working with version 4.5.2M.

I cannot access attached files. When clicking the hyperlink to an attachment, my browser tries to open something like localhost/attachments/......
What I need is something like srv-host/attachments/......   where srv-host is the host name of the server.

Where can I do this configuration?

Best Regards
W.S.

Re: File attachments

Hello W.S.

You should go to the admin's Settings page and under General set the Calendar URL to the real URL (http://www. etc.).

Best regards,
Roel

Re: File attachments

Hello Roel,

thank you for your reply.

The actual setting of Calendar URL is: http://localhost/?cal=mycal

Setting the Calendar URL to http://srv-host/?cal=mycal results in an error message "Missing or invalid settings".
I also tried http://srv-host/index.php/?cal=mycal with the same result.

srv-host is the host name of the Linux server. I am running a local installation. My browser accesses the calendar with srv-host/index.php

Best regards
W.S.

Re: File attachments

Hello W.S.

I see. Because it's a rather unusual host name, the URL parser apparently doesn't like it and flags it as invalid.
Please edit the file "common/toolbox.php" and on line 20 (starting with $rxCalURL) do the following:

Replace "localhost" (somewhere in the middle) by "[\w-]{2,10}host". No typing errors please wink

Since you are running a local server, you should set the calendar URL on the Settings page to srv-host/?cal=mycal. I don't think http:// is needed, but I'm not sure.

Please let us know if this solved your problem.
Best regards,
Roel

PS. I will also change this in the next LuxCal version, which is planned for 1 September.