<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.1" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>Gravity Support Forums Topic: Read contents of CSV file and insert into post body</title>
		<link>https://legacy.forums.gravityhelp.com/topic/read-contents-of-csv-file-and-insert-into-post-body</link>
		<description>Gravity Support Forums Topic: Read contents of CSV file and insert into post body</description>
		<language>en-US</language>
		<pubDate>Sun, 19 Apr 2026 22:14:44 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.1</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>https://legacy.forums.gravityhelp.com/search.php</link>
		</textInput>
		<atom:link href="https://legacy.forums.gravityhelp.com/rss/topic/read-contents-of-csv-file-and-insert-into-post-body" rel="self" type="application/rss+xml" />

		<item>
			<title>Chris Hajer on "Read contents of CSV file and insert into post body"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/read-contents-of-csv-file-and-insert-into-post-body#post-120350</link>
			<pubDate>Sat, 12 Jan 2013 12:45:59 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">120350@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thanks for the update.
&#60;/p&#62;</description>
		</item>
		<item>
			<title>shayh on "Read contents of CSV file and insert into post body"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/read-contents-of-csv-file-and-insert-into-post-body#post-120183</link>
			<pubDate>Sat, 12 Jan 2013 06:47:14 +0000</pubDate>
			<dc:creator>shayh</dc:creator>
			<guid isPermaLink="false">120183@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;Thanks Chris, I actually just need to dump the content as it will be used with the EasyTable plugin, no parsing necessary.  I've used standard PHP to read the content of the uploaded file and everything is working now. &#60;/p&#62;
&#60;p&#62;Shay
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Chris Hajer on "Read contents of CSV file and insert into post body"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/read-contents-of-csv-file-and-insert-into-post-body#post-119789</link>
			<pubDate>Fri, 11 Jan 2013 22:23:36 +0000</pubDate>
			<dc:creator>Chris Hajer</dc:creator>
			<guid isPermaLink="false">119789@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;You need to use standard PHP to read the CSV and output it into a format you like in your post.  I believe the function you want is fgetcsv: &#60;a href=&#34;http://php.net/manual/en/function.fgetcsv.php&#34; rel=&#34;nofollow&#34;&#62;http://php.net/manual/en/function.fgetcsv.php&#60;/a&#62;
&#60;/p&#62;</description>
		</item>
		<item>
			<title>shayh on "Read contents of CSV file and insert into post body"</title>
			<link>https://legacy.forums.gravityhelp.com/topic/read-contents-of-csv-file-and-insert-into-post-body#post-119371</link>
			<pubDate>Fri, 11 Jan 2013 09:15:19 +0000</pubDate>
			<dc:creator>shayh</dc:creator>
			<guid isPermaLink="false">119371@https://legacy.forums.gravityhelp.com/</guid>
			<description>&#60;p&#62;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.&#60;/p&#62;
&#60;p&#62;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).&#60;/p&#62;
&#60;p&#62;Any pointers would be greatly appreciated.&#60;/p&#62;
&#60;p&#62;Thanks,&#60;br /&#62;
Shay&#60;/p&#62;
&#60;p&#62;GF v1.6.11
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
