Hello:
I am making a form with the option to attach a PDF.
I need it to be saved in a folder in Dropbox and also on the server.
I am making the attachment successfully. But I need it with a specific name for each of the PDFs I upload.
The code I am using is:
if($this->formrow->name=='formname'){
$pdfname = 'doc-science.pdf';
}
else{
$recnr=$this->record_id ;
$pdfname = 'doc-science_' . $recnr . '.pdf';
}
I save it in: facileforms.process.php, around line 5381, replacing this line:
$pdfname = $this->uploads . '/ffexport-pdf-' . $date_stamp . '-' . mt_rand(0, mt_getrandmax()) . '.pdf';
In Dropbox it attaches the PDF with the original name without spaces and also a PDF of the form with the configured name.
On the server it is saved in the folder I have assigned, but with the original name without spaces.
As a help I am doing everything according to the indications in this link:
crosstec.org/en/forums/3-breezingforms-f...iggered.html?start=0
How do I save the uploaded PDF with the assigned name, both in Dropbox and on the server?
Thanks for your help.