gsr
04/14/2023, 9:51 PMpublic any function writepdf(required pdfFile="") {
var sourcefile="#arguments.pdffile#";
var n = 'a.pdf';
var dir = application.imagesPath & n;
cfpdf(action="write",source="#sourcefile#",destination="#dir#",overwrite="yes");
return n;
}
i am getting Permission denied errorAdam Cameron
/projects/files/images/openimages/ seems unlikely as a dir on Ubuntu.
It's expecting a fully qualified file system path yeah? So like /var/tmp/whatevs.
Is projects a CF mapping, and are you hoping CF will expand it out? Do you know that works?
Or is projects a subdir of your webroot?gsr
04/14/2023, 10:04 PMAdam Cameron
Adam Cameron
/var/www/projects/files/images/openimages/gsr
04/14/2023, 10:07 PMgsr
04/14/2023, 10:10 PMJohn Wilson
04/19/2023, 2:20 PMexpandPath('/projects/files/images/openimages')gsr
04/20/2023, 11:15 AM