This article is tagged because it NEEDS REVIEW. You can help the Joomla! Documentation Wiki by contributing to it.
More pages that need help similar to this one are here. NOTE-If you feel the need is satistified, please remove this notice.
|In Joomla! 1.5, form fields were parameters. For that version, you may want to use the corresponding Text parameter type.|
Note: You should always add the attribute enctype="multi-part/form-data" to your form tag when using the file input type. Otherwise, the uploaded files will not be attached correctly.
Note 2: You can put a soft limit file size by adding a hidden field with name="MAX_FILE_SIZE" and value the maximum allowed bytes which is handled by php, but you must also handle it in your code with or without it. Example XML field definition:
<field name="myfilevalue" type="file" label="Enter some text" description="Choose an image from your computer with maximum 100KB" size="10" accept="image/*" />