<?xml version="1.0" encoding="UTF-8"?>

<rss version="2.0" xmlns:blogChannel="http://backend.userland.com/blogChannelModule">

<channel>
<title>Topic &#x27;Right method to begin server side validation for file upload&#x27; in forum &#x27;Webmasters and Developers&#x27; - dslreports.com</title>
<link>http://www.dslreports.com/forum/Right-method-to-begin-server-side-validation-for-file-upload-27607864</link>
<description></description>
<language>en</language>
<pubDate>Wed, 22 May 2013 10:12:00 EDT</pubDate>
<lastBuildDate>Wed, 22 May 2013 10:12:00 EDT</lastBuildDate>

<item>
<title>Re: Right method to begin server side validation for file upload</title>
<link>http://www.dslreports.com/forum/Re-Right-method-to-begin-server-side-validation-for-file-upload-27626787</link>
<description><![CDATA[Nordy posted : In the end the $_FILES thingy did the job. Thanks, both of you.]]></description>
<guid isPermaLink="true">http://www.dslreports.com/forum/Re-Right-method-to-begin-server-side-validation-for-file-upload-27626787</guid>
<pubDate>Tue, 16 Oct 2012 07:27:20 EDT</pubDate>
</item>

<item>
<title>Re: Right method to begin server side validation for file upload</title>
<link>http://www.dslreports.com/forum/Re-Right-method-to-begin-server-side-validation-for-file-upload-27626642</link>
<description><![CDATA[sbconslt posted : PHP manages all the plumbing / decoding for you. You don't have to deal with it.]]></description>
<guid isPermaLink="true">http://www.dslreports.com/forum/Re-Right-method-to-begin-server-side-validation-for-file-upload-27626642</guid>
<pubDate>Tue, 16 Oct 2012 02:57:48 EDT</pubDate>
</item>

<item>
<title>Re: Right method to begin server side validation for file upload</title>
<link>http://www.dslreports.com/forum/Re-Right-method-to-begin-server-side-validation-for-file-upload-27614466</link>
<description><![CDATA[MVS posted : You can use the <code>$_FILES</code> array to access the uploaded file.  See this page for more information and sample code: &raquo;<A HREF="http://www.php.net/manual/en/features.file-upload.post-method.php" >www.php.net/manual/en/features.f&middot;&middot;&middot;thod.php</A>]]></description>
<guid isPermaLink="true">http://www.dslreports.com/forum/Re-Right-method-to-begin-server-side-validation-for-file-upload-27614466</guid>
<pubDate>Thu, 11 Oct 2012 21:16:27 EDT</pubDate>
</item>

<item>
<title>Right method to begin server side validation for file upload</title>
<link>http://www.dslreports.com/forum/Right-method-to-begin-server-side-validation-for-file-upload-27607864</link>
<description><![CDATA[Nordy posted : What is the right way to begin validation for data sent by a multipart/form form. I'll be receiving a file and 1 text identifier from a hidden field.<br><br>I can handle checking for file type and size and all else. What I'm asking is the initial code. Form a normal form I usually do this:<br><br><pre class="brush: text">&lt;?php&#012; &#012;If ($_POST)&#012;{&#012; &#012;if (isset($_POST&#91;'myField&#93;) &amp;&amp; $_POST&#91;'myField'&#93; == 1)&#012;{&#012;//Proceed with the rest&#012;}else{&#012;echo 'Error';&#012;}&#012;}&#012;else&#012;{&#012;echo 'Some Error';&#012;}&#012;?&gt;&#012; &#012;</pre><!--end code block--><br>What's the best way to do it when it come to multipart/form data? How do u pros / experienced guys do it?<br><br>Thanks,<br>Norman<br>]]></description>
<guid isPermaLink="true">http://www.dslreports.com/forum/Right-method-to-begin-server-side-validation-for-file-upload-27607864</guid>
<pubDate>Wed, 10 Oct 2012 08:49:02 EDT</pubDate>
</item>

</channel>
</rss>
