<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://docs.joomla.org/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://docs.joomla.org/index.php?title=File_form_field_type&amp;feed=atom&amp;action=history</id>
		<title>File form field type - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://docs.joomla.org/index.php?title=File_form_field_type&amp;feed=atom&amp;action=history"/>
		<link rel="alternate" type="text/html" href="http://docs.joomla.org/index.php?title=File_form_field_type&amp;action=history"/>
		<updated>2013-05-24T12:18:25Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.19.3</generator>

	<entry>
		<id>http://docs.joomla.org/index.php?title=File_form_field_type&amp;diff=80664&amp;oldid=prev</id>
		<title>Wilsonge: Remove Incomplete and review tags</title>
		<link rel="alternate" type="text/html" href="http://docs.joomla.org/index.php?title=File_form_field_type&amp;diff=80664&amp;oldid=prev"/>
				<updated>2013-02-07T09:05:01Z</updated>
		
		<summary type="html">&lt;p&gt;Remove Incomplete and review tags&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 valign='top'&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 09:05, 7 February 2013&lt;/td&gt;
			&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;del style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;del style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;{{incomplete}}{{review}}&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&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: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;{{Ambox|type=notice|text=In Joomla! 1.5, [[Form field|form fields]] were [[Parameter|parameters]]. For that version, you may want to use the corresponding [[Text parameter type]].}}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;{{Ambox|type=notice|text=In Joomla! 1.5, [[Form field|form fields]] were [[Parameter|parameters]]. For that version, you may want to use the corresponding [[Text parameter type]].}}&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: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Wilsonge</name></author>	</entry>

	<entry>
		<id>http://docs.joomla.org/index.php?title=File_form_field_type&amp;diff=77684&amp;oldid=prev</id>
		<title>Waveywhite at 11:30, 22 November 2012</title>
		<link rel="alternate" type="text/html" href="http://docs.joomla.org/index.php?title=File_form_field_type&amp;diff=77684&amp;oldid=prev"/>
				<updated>2012-11-22T11:30:23Z</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 valign='top'&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;← Older revision&lt;/td&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;Revision as of 11:30, 22 November 2012&lt;/td&gt;
			&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 20:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 20:&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: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&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: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;'''Note:'''&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;'''Note:'''&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;background: #ffa; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;You should always add the attribute enctype=&amp;quot;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;multi-part&lt;/del&gt;/form-data&amp;quot; to your form tag when using the file input type. Otherwise, the uploaded files will not be attached correctly.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;You should always add the attribute enctype=&amp;quot;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;multipart&lt;/ins&gt;/form-data&amp;quot; to your form tag when using the file input type. Otherwise, the uploaded files will not be attached correctly.&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: #eee; color:black; font-size: smaller;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&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: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;'''Note 2:'''&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;'''Note 2:'''&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Waveywhite</name></author>	</entry>

	<entry>
		<id>http://docs.joomla.org/index.php?title=File_form_field_type&amp;diff=75240&amp;oldid=prev</id>
		<title>E-builds: Created page with &quot; {{incomplete}}{{review}} {{Ambox|type=notice|text=In Joomla! 1.5, form fields were parameters. For that version, you may want to use the correspo...&quot;</title>
		<link rel="alternate" type="text/html" href="http://docs.joomla.org/index.php?title=File_form_field_type&amp;diff=75240&amp;oldid=prev"/>
				<updated>2012-09-17T12:17:32Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot; {{incomplete}}{{review}} {{Ambox|type=notice|text=In Joomla! 1.5, &lt;a href=&quot;/Form_field&quot; title=&quot;Form field&quot;&gt;form fields&lt;/a&gt; were &lt;a href=&quot;/Parameter&quot; class=&quot;mw-redirect&quot; title=&quot;Parameter&quot;&gt;parameters&lt;/a&gt;. For that version, you may want to use the correspo...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&lt;br /&gt;
{{incomplete}}{{review}}&lt;br /&gt;
{{Ambox|type=notice|text=In Joomla! 1.5, [[Form field|form fields]] were [[Parameter|parameters]]. For that version, you may want to use the corresponding [[Text parameter type]].}}&lt;br /&gt;
&lt;br /&gt;
Intro: todo&lt;br /&gt;
&lt;br /&gt;
* '''type''' (mandatory) must be ''file''.&lt;br /&gt;
* '''name''' (mandatory) is the unique name of the field.&lt;br /&gt;
* '''label''' (mandatory) (translatable) is the descriptive title of the field.&lt;br /&gt;
* '''default''' (optional) (not translatable) is the default value, but doesn't mean much for a file.&lt;br /&gt;
* '''description''' (optional) (translatable) is text that will be shown as a tooltip when the user moves the mouse over the drop-down box.&lt;br /&gt;
* '''size''' (optional) is the width of the file box in characters. &lt;br /&gt;
* [http://www.w3schools.com/tags/att_input_accept.asp '''accept'''] (optional) Tells the browser what MIME types your form will allow to be uploaded.&lt;br /&gt;
* '''class''' (optional) is a CSS class name for the HTML form field.&lt;br /&gt;
* '''disabled''' (optional)  HTML equivalent attribute&lt;br /&gt;
* '''onchange''' (optional)  HTML equivalent attribute&lt;br /&gt;
* '''required''' (optional)  For Joomla form validating it to be filled in&lt;br /&gt;
* '''validate''' (optional)  Whether to Joomla validate the field according to rules&lt;br /&gt;
* '''onchange''' (optional)  HTML equivalent attribute (javascript use)&lt;br /&gt;
&lt;br /&gt;
'''Note:'''&lt;br /&gt;
You should always add the attribute enctype=&amp;quot;multi-part/form-data&amp;quot; to your form tag when using the file input type. Otherwise, the uploaded files will not be attached correctly.&lt;br /&gt;
&lt;br /&gt;
'''Note 2:'''&lt;br /&gt;
You can put a soft limit file size by adding a hidden field with name=&amp;quot;MAX_FILE_SIZE&amp;quot; and value the maximum allowed bytes which is handled by php, but you must also handle it in your code with or without it.&lt;br /&gt;
Example XML field definition:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;xml&amp;quot;&amp;gt;&amp;lt;field name=&amp;quot;myfilevalue&amp;quot; type=&amp;quot;file&amp;quot; label=&amp;quot;Enter some text&amp;quot; description=&amp;quot;Choose an image from your computer with maximum 100KB&amp;quot; size=&amp;quot;10&amp;quot; accept=&amp;quot;image/*&amp;quot; /&amp;gt;&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== See also ===&lt;br /&gt;
* [[Media_form_field_type]]&lt;br /&gt;
* [[Standard form field types|List of standard form field types]]&lt;br /&gt;
[[Category:Standard form field types]]&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>E-builds</name></author>	</entry>

	</feed>