I am trying to create a form to allow users to upload a CSV file and some PDFs. I need to create links to the PDFs in the post body as well as display the actual content from the CSV file.
I have looked at gform_after_submission_[form_id] and have the PDF links working fine. My problem is I'm not sure of the best way to get the contents of the CSV file into the post body. Is there a GF function I can use or do I need to use standard PHP? If PHP, does anyone have any sample code I could use as I'm worried about just dumping the contents of the file straight into a post in case there is anything malicious in it (doubtful given the users/environment but you never know).
Any pointers would be greatly appreciated.
Thanks,
Shay
GF v1.6.11