Saving Attachments
-
I am using the “Save file to alternate location” code, from here:
https://cfdbplugin.com/?page_id=794On the FTP, I created a folder to save the form attachments.
Putting the following URL into a web browser will download the file:
http://www.mysite.com/stage/wp-content/uploads/formAttachments/blah.pdfKnowing that, what do I change the variables $uploadDir and $urlDir to, in the following code??
// CHANGE THIS: directory where the file will be saved permanently $uploadDir = '/root/htdocs/wp-content/uploads/path/to/save/dir/'; // CHANGE THIS: URL to the above directory $urlDir = 'http://your-site.com/uploads/path/to/save/dir/';Thank you so much for you help,
Paul
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘Saving Attachments’ is closed to new replies.