<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Kurinchi Blogger Scribbles ... &#187; image upload</title>
	<atom:link href="http://kurinchilamp.kurinchilion.com/tag/image-upload/feed" rel="self" type="application/rss+xml" />
	<link>http://kurinchilamp.kurinchilion.com</link>
	<description>On Open Source Technologies</description>
	<lastBuildDate>Mon, 02 Jan 2012 06:14:45 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>PHP Image Upload and Security</title>
		<link>http://kurinchilamp.kurinchilion.com/2009/07/php-image-upload-and-security.html</link>
		<comments>http://kurinchilamp.kurinchilion.com/2009/07/php-image-upload-and-security.html#comments</comments>
		<pubDate>Fri, 10 Jul 2009 01:16:49 +0000</pubDate>
		<dc:creator>kurinchilamp</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Tips, Tricks, Guides]]></category>
		<category><![CDATA[file upload]]></category>
		<category><![CDATA[image upload]]></category>
		<category><![CDATA[isuploaded]]></category>
		<category><![CDATA[php user rights]]></category>

		<guid isPermaLink="false">http://kurinchilamp.kurinchilion.com/?p=433</guid>
		<description><![CDATA[List of steps to take care when using PHP to upload images or documents i) use is_uploaded() function to check if the file is uploaded before moving the file from temporary location ii) sanitize the name of the file before moving the file from the temporary location by executing the &#8216;mv&#8217; system command (use escapeshellargs, [...]]]></description>
			<content:encoded><![CDATA[<p><strong>List of steps to take care when using PHP to upload images or documents</strong></p>
<p>i) use is_uploaded() function to check if the file is uploaded before moving the file from temporary location</p>
<p>ii) sanitize the name of the file before moving the file from the temporary location by executing the &#8216;mv&#8217; system command (use escapeshellargs, escapeshellcmd as needed)</p>
<p>iii) chmod the file setting to 644 if needed</p>
<p>iv) the directory from where the file will be moved and the destination directory should be initialized beforehand in order to prevent users from altering the path where the files could be stored</p>
]]></content:encoded>
			<wfw:commentRss>http://kurinchilamp.kurinchilion.com/2009/07/php-image-upload-and-security.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

