<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="https://script.spoken-tutorial.org/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://script.spoken-tutorial.org/index.php?action=history&amp;feed=atom&amp;title=PHP-and-MySQL%2FC4%2FFile-Upload-Part-2%2FEnglish</id>
		<title>PHP-and-MySQL/C4/File-Upload-Part-2/English - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://script.spoken-tutorial.org/index.php?action=history&amp;feed=atom&amp;title=PHP-and-MySQL%2FC4%2FFile-Upload-Part-2%2FEnglish"/>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php?title=PHP-and-MySQL/C4/File-Upload-Part-2/English&amp;action=history"/>
		<updated>2026-04-08T18:42:36Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.23.17</generator>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php?title=PHP-and-MySQL/C4/File-Upload-Part-2/English&amp;diff=24502&amp;oldid=prev</id>
		<title>Gaurav at 04:22, 18 November 2015</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php?title=PHP-and-MySQL/C4/File-Upload-Part-2/English&amp;diff=24502&amp;oldid=prev"/>
				<updated>2015-11-18T04:22:13Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 04:22, 18 November 2015&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 124:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 124:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|-&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|-&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|3:51&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|3:51&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|I'll say - if the type of file - that's our type variable, t-y-p-e, 2 equal to signs, equals video &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;dot &lt;/del&gt;avi.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|I'll say - if the type of file - that's our type variable, t-y-p-e, 2 equal to signs, equals video &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;slash &lt;/ins&gt;avi.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|-&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|-&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|4:09&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|4:09&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|As you saw in the first part of this, as I echoed it out, it was equal to video &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;dot &lt;/del&gt;avi. &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|As you saw in the first part of this, as I echoed it out, it was equal to video &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;slash &lt;/ins&gt;avi. &amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|-&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|-&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|4:19&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|4:19&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|And then we're saying that if it is equal to video &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;dot &lt;/del&gt;avi then upload the file.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|And then we're saying that if it is equal to video &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;slash &lt;/ins&gt;avi then upload the file.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|-&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|-&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|4:28&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;|4:28&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Gaurav</name></author>	</entry>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php?title=PHP-and-MySQL/C4/File-Upload-Part-2/English&amp;diff=866&amp;oldid=prev</id>
		<title>Pravin1389: moved PHP-and-MySQL/C4/File Upload-(Part 2)/English to PHP-and-MySQL/C4/File-Upload-Part-2/English</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php?title=PHP-and-MySQL/C4/File-Upload-Part-2/English&amp;diff=866&amp;oldid=prev"/>
				<updated>2012-12-01T14:56:32Z</updated>
		
		<summary type="html">&lt;p&gt;moved &lt;a href=&quot;/index.php/PHP-and-MySQL/C4/File_Upload-(Part_2)/English&quot; class=&quot;mw-redirect&quot; title=&quot;PHP-and-MySQL/C4/File Upload-(Part 2)/English&quot;&gt;PHP-and-MySQL/C4/File Upload-(Part 2)/English&lt;/a&gt; to &lt;a href=&quot;/index.php/PHP-and-MySQL/C4/File-Upload-Part-2/English&quot; title=&quot;PHP-and-MySQL/C4/File-Upload-Part-2/English&quot;&gt;PHP-and-MySQL/C4/File-Upload-Part-2/English&lt;/a&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;tr style='vertical-align: top;'&gt;
				&lt;td colspan='1' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='1' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 14:56, 1 December 2012&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan='2' style='text-align: center;'&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(No difference)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Pravin1389</name></author>	</entry>

	<entry>
		<id>https://script.spoken-tutorial.org/index.php?title=PHP-and-MySQL/C4/File-Upload-Part-2/English&amp;diff=568&amp;oldid=prev</id>
		<title>Chandrika: Created page with '{|Border=1 !Time !Narration |- |0:00 |Welcome back.  In the first part of this tutorial, I showed you how to take out specific properties of our uploaded file using this form her…'</title>
		<link rel="alternate" type="text/html" href="https://script.spoken-tutorial.org/index.php?title=PHP-and-MySQL/C4/File-Upload-Part-2/English&amp;diff=568&amp;oldid=prev"/>
				<updated>2012-11-29T06:52:36Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;#039;{|Border=1 !Time !Narration |- |0:00 |Welcome back.  In the first part of this tutorial, I showed you how to take out specific properties of our uploaded file using this form her…&amp;#039;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{|Border=1&lt;br /&gt;
!Time&lt;br /&gt;
!Narration&lt;br /&gt;
|-&lt;br /&gt;
|0:00&lt;br /&gt;
|Welcome back.  In the first part of this tutorial, I showed you how to take out specific properties of our uploaded file using this form here.&lt;br /&gt;
|-&lt;br /&gt;
|0:10&lt;br /&gt;
|Now I'll show you how to upload this file and move it to the uploaded folder here which is currently empty.&lt;br /&gt;
|-&lt;br /&gt;
|0:18&lt;br /&gt;
|If you recall, we're referring to a temporary area that is being stored on our web server.&lt;br /&gt;
|-&lt;br /&gt;
|0:25&lt;br /&gt;
|Its not of much use right now.&lt;br /&gt;
|-&lt;br /&gt;
|0:29&lt;br /&gt;
|We have all our properties here, so I'll say properties of the uploaded file so we know what we're doing.&lt;br /&gt;
|-&lt;br /&gt;
|0:34&lt;br /&gt;
|We have all our specific properties here.&lt;br /&gt;
|-&lt;br /&gt;
|0:38&lt;br /&gt;
|I've given all of them easy to remember variable names so we don't need to comment each of these individually.&lt;br /&gt;
|-&lt;br /&gt;
|0:46&lt;br /&gt;
|First thing we will do is create an 'if' statement to check if there are any errors.&lt;br /&gt;
|-&lt;br /&gt;
|0:53&lt;br /&gt;
|Here if error code is bigger than zero meaning it has been issued by an error code then I'll say 'die' &lt;br /&gt;
|-&lt;br /&gt;
|1:03&lt;br /&gt;
|And I will give an error message out &amp;quot;File couldn't...&amp;quot; &lt;br /&gt;
|-&lt;br /&gt;
|1:11&lt;br /&gt;
|Or 'Error uploading file, code error'.&lt;br /&gt;
|-&lt;br /&gt;
|1:20&lt;br /&gt;
|This will give the user an error code.&lt;br /&gt;
|-&lt;br /&gt;
|1:23&lt;br /&gt;
|Now the 'else' part. &lt;br /&gt;
|-&lt;br /&gt;
|1:25&lt;br /&gt;
|I'll add these curly brackets to keep that simple and in a single line.&lt;br /&gt;
|-&lt;br /&gt;
|1:29&lt;br /&gt;
|So 'else' I want to use a function called 'move_uploaded_file'.&lt;br /&gt;
|-&lt;br /&gt;
|1:39&lt;br /&gt;
|Then we'll take the temporary name 'temp', which is the first parameter of this function and the second parameter is the destination which is 'uploaded folder'&lt;br /&gt;
|-&lt;br /&gt;
|1:51&lt;br /&gt;
|So I'll type 'uploaded' and a forward slash.&lt;br /&gt;
|-&lt;br /&gt;
|1:59&lt;br /&gt;
|And at the end of that we'll concatenate the name the file that we've uploaded.&lt;br /&gt;
|-&lt;br /&gt;
|2:07&lt;br /&gt;
|So here it would just be 'name'.&lt;br /&gt;
|-&lt;br /&gt;
|2:10&lt;br /&gt;
|This shows the user just adding the inter variables here.&lt;br /&gt;
|-&lt;br /&gt;
|2:15&lt;br /&gt;
|Otherwise we would have to type these, for example - temp name.&lt;br /&gt;
|-&lt;br /&gt;
|2:19&lt;br /&gt;
|Then go here and place it like this.&lt;br /&gt;
|-&lt;br /&gt;
|2:22&lt;br /&gt;
|It gets quite messy and hard to read.&lt;br /&gt;
|-&lt;br /&gt;
|2:25&lt;br /&gt;
|So its easier to just keep these variables here.&lt;br /&gt;
|-&lt;br /&gt;
|2:33 &lt;br /&gt;
|Okay so now I'll get rid of these or rather I'll keep these.&lt;br /&gt;
|-&lt;br /&gt;
|2:37&lt;br /&gt;
|And lastly echo out a message saying 'Upload complete'.&lt;br /&gt;
|-&lt;br /&gt;
|2:41&lt;br /&gt;
|Lets try this.&lt;br /&gt;
|-&lt;br /&gt;
|2:47&lt;br /&gt;
|I logon to our page and pick our file - 'intro to avi'.&lt;br /&gt;
|-&lt;br /&gt;
|2:51&lt;br /&gt;
|I'll click on upload and we can see that upload is complete. &lt;br /&gt;
|-&lt;br /&gt;
|2:55&lt;br /&gt;
|Lets check my file.&lt;br /&gt;
|-&lt;br /&gt;
|2:57&lt;br /&gt;
|Upload folder and click on my uploaded sub directory you can see that the file is here whereas before - it had been stored in the temporary directory on my web server.&lt;br /&gt;
|-&lt;br /&gt;
|3:08&lt;br /&gt;
|So we've successfully uploaded our file here.&lt;br /&gt;
|-&lt;br /&gt;
|3:13&lt;br /&gt;
|There are a few more things that we need to do.&lt;br /&gt;
|-&lt;br /&gt;
|3:15&lt;br /&gt;
|Undo another 'if' statement or undo this 'if' statement. &lt;br /&gt;
|-&lt;br /&gt;
|3:20&lt;br /&gt;
|We are going to check for specific file types that we don't want uploaded.&lt;br /&gt;
|-&lt;br /&gt;
|3:24&lt;br /&gt;
|So for example lets say I don't want avi files to be uploaded.&lt;br /&gt;
|-&lt;br /&gt;
|3:30&lt;br /&gt;
|What I could do here is say - if error is bigger than zero, don't upload files. &lt;br /&gt;
|-&lt;br /&gt;
|3:37&lt;br /&gt;
|Otherwise I'll start a new 'if'  statement inside the else&lt;br /&gt;
|-&lt;br /&gt;
|3:41&lt;br /&gt;
|And I'll create a block here.&lt;br /&gt;
|-&lt;br /&gt;
|3:47&lt;br /&gt;
|And these are the conditions for the file.&lt;br /&gt;
|-&lt;br /&gt;
|3:51&lt;br /&gt;
|I'll say - if the type of file - that's our type variable, t-y-p-e, 2 equal to signs, equals video dot avi.&lt;br /&gt;
|-&lt;br /&gt;
|4:09&lt;br /&gt;
|As you saw in the first part of this, as I echoed it out, it was equal to video dot avi. &lt;br /&gt;
|-&lt;br /&gt;
|4:19&lt;br /&gt;
|And then we're saying that if it is equal to video dot avi then upload the file.&lt;br /&gt;
|-&lt;br /&gt;
|4:28&lt;br /&gt;
|I'll just move it down here and I will put that into the 'else' block.&lt;br /&gt;
|-&lt;br /&gt;
|4:32&lt;br /&gt;
|So now I have - if the video is equal to avi then die and the message is 'That format is not allowed'.&lt;br /&gt;
|-&lt;br /&gt;
|4:44&lt;br /&gt;
|Okay so now I'll delete this from our uploaded directory and I'll come back to my initial uploaded file.&lt;br /&gt;
|-&lt;br /&gt;
|4:54&lt;br /&gt;
|I'll choose intro dot avi and when I click upload it says that that 'format is not allowed'&lt;br /&gt;
|-&lt;br /&gt;
|5:01&lt;br /&gt;
|And if you go to my uploaded directory you can see that the folder is empty.&lt;br /&gt;
|-&lt;br /&gt;
|5:06&lt;br /&gt;
|Nothing has been uploaded.&lt;br /&gt;
|-&lt;br /&gt;
|5:08&lt;br /&gt;
|Now instead of avi let us say I want to ban 'images with png' extension.&lt;br /&gt;
|-&lt;br /&gt;
|5:15&lt;br /&gt;
|I'll change it here and upload my file again.&lt;br /&gt;
|-&lt;br /&gt;
|5:23&lt;br /&gt;
|You can see that because its an accepted file format, we get the message 'Upload complete' and its been transferred to my uploaded folder.&lt;br /&gt;
|-&lt;br /&gt;
|5:33&lt;br /&gt;
|Lets delete that again.  Oh! I canceled it.  Lets delete that again.&lt;br /&gt;
|-&lt;br /&gt;
|5:42&lt;br /&gt;
|Okay. So what we've seen here is how to specify a specific type.&lt;br /&gt;
|-&lt;br /&gt;
|5:47&lt;br /&gt;
|What we also can do is specify a specific file size.&lt;br /&gt;
|-&lt;br /&gt;
|5:51&lt;br /&gt;
|I'll say 'or' using this 'or' operator and I'll say 'or' the size is bigger than half a megabyte.&lt;br /&gt;
|-&lt;br /&gt;
|6:04&lt;br /&gt;
|This is half a megabyte, which is five hundred thousand bits sorry bytes.  I think I made a mistake and said bits instead of bytes.&lt;br /&gt;
|-&lt;br /&gt;
|6:14&lt;br /&gt;
|So that's five hundred thousand bytes which is equal to 0 point 4 megabytes. I'll just say half a megabyte for now.&lt;br /&gt;
|-&lt;br /&gt;
|6:29&lt;br /&gt;
|This will evaluate the size and say is it bigger than half a megabyte.&lt;br /&gt;
|-&lt;br /&gt;
|6:38&lt;br /&gt;
|Then it will say this format is not allowed.&lt;br /&gt;
|-&lt;br /&gt;
|6:43&lt;br /&gt;
|So I'll change this message to accommodate 'Format not allowed or file size too big'.&lt;br /&gt;
|-&lt;br /&gt;
|6:56&lt;br /&gt;
|So you can create an if statement for each of these that is for evaluating your type and evaluating your size.&lt;br /&gt;
|-&lt;br /&gt;
|7:03&lt;br /&gt;
|You just need to take this condition and put it in another 'if' statement.&lt;br /&gt;
|-&lt;br /&gt;
|7:09&lt;br /&gt;
|So I go back here and I'll choose my file again.&lt;br /&gt;
|-&lt;br /&gt;
|7:12&lt;br /&gt;
|Just making sure its there.&lt;br /&gt;
|-&lt;br /&gt;
|7:14&lt;br /&gt;
|Click upload and it'll say 'Format not allowed'.&lt;br /&gt;
|-&lt;br /&gt;
|7:19&lt;br /&gt;
|Now if you go back to our code this is not in png format but it is exceeding the size limit.&lt;br /&gt;
|-&lt;br /&gt;
|7:25&lt;br /&gt;
|Lets change this to 2 million which is 2 megabytes.&lt;br /&gt;
|-&lt;br /&gt;
|7:31&lt;br /&gt;
|Refresh and send that.&lt;br /&gt;
|-&lt;br /&gt;
|7:33&lt;br /&gt;
|We can see that our upload has been completed because this is only one megabyte in size. &lt;br /&gt;
|-&lt;br /&gt;
|7:39&lt;br /&gt;
|That's all I have on File Upload for now. &lt;br /&gt;
|-&lt;br /&gt;
|7:44&lt;br /&gt;
|This is all you need to know to use this to keep out specific file types and file sizes that are too large for your web server.&lt;br /&gt;
|-&lt;br /&gt;
|7:54&lt;br /&gt;
|If you don't want big files on your web server this is a good way to control it.&lt;br /&gt;
|-&lt;br /&gt;
|7:58&lt;br /&gt;
|Its very easy to create as you've seen.&lt;br /&gt;
|-&lt;br /&gt;
|8:01&lt;br /&gt;
|Practice this and you'll be quite impressed with how useful this can be.&lt;br /&gt;
|-&lt;br /&gt;
|8:05&lt;br /&gt;
|If you've got any questions please don't hesitate to ask.&lt;br /&gt;
|-&lt;br /&gt;
|8:08&lt;br /&gt;
|Also please subscribe if you want to be notified on any updated videos or new videos.&lt;br /&gt;
|-&lt;br /&gt;
|8:15&lt;br /&gt;
|Thanks for watching.  This is Joshua Mathew dubbing for the Spoken Tutorial Project. Bye.&lt;/div&gt;</summary>
		<author><name>Chandrika</name></author>	</entry>

	</feed>