Forums

CF8 Attachment to sender

gabi 31 Oct, 2023
In my reply to sender I want to attach a pdf file so I choose Behaviors - attachments
It says: Multiline list of absolute files paths to attach to this email

I insert this: https://sup.linedancetoender.dk/images/PDF/Bordertraef_program/A4_flyer_2024_dansk.pdf

On submit I am getting this error:
Could not access file: https://sup.linedancetoender.dk/images/PDF/Bordertraef_program/A4_flyer_2024_dansk.pdf

What am I missing, is it possible at all?
Max_admin 01 Nov, 2023
Answer
you need to use the absolute path to the file, but you are using the URL
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
gabi 01 Nov, 2023
I tried so many different paths, couldn't get anything working.
Can you, from the url, say what would the absolute bath be?
gabi 02 Nov, 2023
Would the absolute path be like this?

/images/PDF/Bordertraef_program/A4_flyer_2024_dansk.pdf

If yes, this is not working either:
Could not access file: images/PDF/Bordertraef_program/A4_flyer_2024_dansk.pdf
Max_admin 03 Nov, 2023
you can try this:
{path:front}/../../images/PDF/Bordertraef_program/A4_flyer_2024_dansk.pdf
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
gabi 03 Nov, 2023
This is a relative path isn't it?

Unfortunately this is not working either

Could not access file: var/www/linedancetoender.dk/sup_linedancetoender/components/com_chronoforms8/../../images/PDF/Bordertraef_program/A4_flyer_2024_dansk.pdf
Max_admin 05 Nov, 2023
so the absolute path is shown:
var/www/linedancetoender.dk/sup_linedancetoender/images/PDF/Bordertraef_program/A4_flyer_2024_dansk.pdf
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
gabi 06 Nov, 2023
This is not working either:

var/www/linedancetoender.dk/sup_linedancetoender/images/PDF/Bordertraef_program/A4_flyer_2024_dansk.pdf

Error message:
Could not access file: var/www/linedancetoender.dk/sup_linedancetoender/images/PDF/Bordertraef_program/A4_flyer_2024_dansk.pdf
Max_admin 06 Nov, 2023
I'm not sure, please try to ask your host admin what is the path to the file ?

or the file may be unreadable by Joomla if this is the correct path
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
gabi 06 Nov, 2023
Well if you put this in your browser, you will see the flyer
https://sup.linedancetoender.dk/images/PDF/Bordertraef_program/A4_flyer_2024_dansk.pdf

https://sup.linedancetoender.dk/images/PDF/Bordertraef_program/A4_flyer_2024_dansk.pdf

Somewhere I read about absolute path, and it should be the whole url.

The link above is working everywhere else on my page, but not in chronoform it seem

Found this, and I really cant see how my link should be wrong:
Is an absolute file path the full URL to a file?
An absolute URL is the full URL, including protocol ( http / https ), the optional subdomain (e.g. www ), domain ( example.com ), and path (which includes the directory and slug). Absolute URLs provide all the available information to find the location of a page.
gabi 06 Nov, 2023
Are you sure there is no bug in this funktion in Chronoform?
Did you test it and is it working for you
Max_admin 07 Nov, 2023
1 Likes
you need the absolute "path" not "url", and yes it works for me

try this:
/var/www/linedancetoender.dk/sup_linedancetoender/images/PDF/Bordertraef_program/A4_flyer_2024_dansk.pdf
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
gabi 07 Nov, 2023
1 Likes
Phew, now it is working.

I also checked the homepage for my host simply.com.
Here I found this:

The path to your root directory on PHP web hotels is /var/www/linedancetoender.dk/

Therefore, if you need to get hold of the public_html folder, the path will be
/var/www/linedancetoender.dk/public_html

So for my main domain I used this:
/var/www/linedancetoender.dk/public_html/images/PDF/Bordertraef_program/A4_flyer_2024_dansk.pdf

And for my sup domain I used this:
/var/www/linedancetoender.dk/sup_linedancetoender/images/PDF/Bordertraef_program/A4_flyer_2024_dansk.pdf

Thank you so much for your effort in helping me.

We got it in the end, I am happy
Max_admin 07 Nov, 2023
great!

if you have a moment, please give us a review on the JED here
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
You need to login to be able to post a reply.