Loading...
 
Features / Usability

Features / Usability


How to "download/copy" a file to a server directory

posts: 38 Germany

Dear all,

due to the impossibility to print the images included in a wiki page as pdf by means of mpdf, I have thought to copy the images to the temporary directory of mpdf and to code a workaround to solve this problem.

I've identified the place in mpdf's code which get the path to the image as
srcpath -> http:///tiki/tiki-download_file.php?fileId=150&display&x=400&y=173

At this point I would include the copy of this image file to
/srv/www/htdocs/tiki/vendor/mpdf/tmp (this would be the new image location = new_srcpath)

And substitute the mentioned source path (srcpath) by new image file location (new_srcpath)

But, how can I perform the copy operation from the file gallery to the mpdf tmp directory?


Thank you in advance,
Manel

There are no comments at this time.