Friends,
I'm trying to get the File Upload form field to work on Joomla 2.5(.11). For some reason I can't get the file to upload.
As soon as I click "Save", the file upload field says "No file chosen", again.
I've searched the docs and discussions to no avail. I did find information on how to do a file upload on a backend component -- leveraging PHP, of course.
I've attached my XML file code (but removed the personally identifying information and such).
I really appreciate any help with this that's different from the other posts on Stack which focus on the PHP solution -- I'm looking to do this using the module params.
http://docs.joomla.org/File_form_field_type
<?xml version="1.0" encoding="utf-8"?>
<extension
type="module"
version="2.5"
client="site"
method="upgrade">
<version>2.5.0</version>
<config>
<fields name="params" >
<fieldset name="basic">
<field name="file1" type="file" label="Upload" description="Upload a file" size="10" />
</fieldset>
</fields>
</config>
</extension>
It says in the docs to use enctype="multipart/form-data" in the form field, however I'm not sure where that would go here... I tried wrapping the fields in a form field and using that, I also tried setting it to the config and fields elements to no avail.
Any help is greatly appreciated, thanks friends.