I have a form that creates a pdf. It works prefectly when accessing the form from the front end, but I's like a back end version. As far as I can tell everything else works. It's saving data, but getting stuck at the pdf creation stage. The storage folder is outside the public directory at: /homepages/7/d444920525/initial_assessments/initial_assessment_{data:client_ref}.pdf
and that's all fine from the front end. Is there ay reason it's not accepting this absolute path in the admin side only? Could it be a permissions issue? Or does TCPDF work only in the front end?
and that's all fine from the front end. Is there ay reason it's not accepting this absolute path in the admin side only? Could it be a permissions issue? Or does TCPDF work only in the front end?
There's an issue with the way chronoforms is processing the path
I note from https://www.chronoengine.com/faqs/74-chronoforms/chronoforms6/5289-variable-shortcodes that it says "NB the path strings will include the /administrator/ folder if viewed from the back-end of the site.", which it must be doing, even though the error message doesn't have any reference to the administrator path.
If I set a path in the public folder like {path:front}/pdf/initial_assessment_{data:client_ref}.pdf it works fine from the front of back end, but I can't have these files being saved in a pubic directory.
How can I get past this?
I note from https://www.chronoengine.com/faqs/74-chronoforms/chronoforms6/5289-variable-shortcodes that it says "NB the path strings will include the /administrator/ folder if viewed from the back-end of the site.", which it must be doing, even though the error message doesn't have any reference to the administrator path.
If I set a path in the public folder like {path:front}/pdf/initial_assessment_{data:client_ref}.pdf it works fine from the front of back end, but I can't have these files being saved in a pubic directory.
How can I get past this?
You need to login to be able to post a reply.