I've been checking as much "File Upload" cases as I found, but I cannot solve my problem😟
I'm using Joomla 1.5.8 with ChronoForms 3.1R5.1.
I've created a Form to upload a file to the server, but nothing seems to work (no file uploaded and not email send)
Here's the info:
General Tab:
Email The Results: YES
Form Tag Attachment: enctype='multipart/form-data'
Form Post: POST
Debug: ON
Form Code:
<div class="form_item">
<div class="form_element cf_textbox">
<label class="cf_label" style="width: 150px;">Full Name:</label>
<input class="cf_inputbox required" maxlength="150" size="30" title="{cf_title}" id="text_0" name="text_fullname" type="text" />
</div>
<div class="cfclear">Â </div>
</div>
<div class="form_item">
<div class="form_element cf_textbox">
<label class="cf_label" style="width: 150px;">Company:</label>
<input class="cf_inputbox required" maxlength="150" size="30" title="{cf_title}" id="text_1" name="text_company" type="text" />
</div>
<div class="cfclear">Â </div>
</div>
<div class="form_item">
<div class="form_element cf_textbox">
<label class="cf_label" style="width: 150px;">Phone:</label>
<input class="cf_inputbox" maxlength="150" size="30" title="{cf_title}" id="text_2" name="text_ph0ne" type="text" />
</div>
<div class="cfclear">Â </div>
</div>
<div class="form_item">
<div class="form_element cf_textbox">
<label class="cf_label" style="width: 150px;">Email:</label>
<input class="cf_inputbox required validate-email" maxlength="150" size="30" title="{cf_title}" id="text_3" name="text_email" type="text" />
</div>
<div class="cfclear">Â </div>
</div>
<div class="form_item">
<div class="form_element cf_fileupload">
<label class="cf_label" style="width: 150px;">Upload File:</label>
<input class="cf_fileinput cf_inputbox" title="{cf_title}" size="20" id="file_4" name="file_upload" type="file" />
<a class="tooltiplink" onclick="return false;"><img height="16" border="0" width="16" class="tooltipimg" src="components/com_chronocontact/css/images/tooltip.png"/></a>
<div class="tooltipdiv">Upload File: :: Only Compress Files are Accepted (zip, rar, gz, 7z)</div>
</div>
<div class="cfclear">Â </div>
</div>
<div class="form_item">
<div class="form_element cf_button">
<input value="Submit" name="{cf_name}" type="submit" />
</div>
<div class="cfclear">Â </div>
</div>
File Uploads:
File Names/Allowed extensions: file_4:zip|rar|gz|7z{999999-0}
Full upload Path: (Writable)
I've created the form using the "Form Wizard"
Once I execute the form I get the next answer:
1. Form passed first SPAM check OK
2. Form passed the submissions limit (if enabled) OK
3. Form passed the Image verification (if enabled) OK
4. Form passed the server side validation (if enabled) OK
5. $_POST Array: Array ( [text_fullname] => My Name [text_company] => My Company [text_ph0ne] => [text_email] => [email]myemail@example.com[/email] [{cf_name}] => Submit [0b4ca5f55b0750df592d04e424a015b0] => 1 [1cf1] => 477f8b001b14e7b4d6aaae8cc82b0d10 [chronoformname] => UploadForm )
6. $_FILES Array: Array ( [file_upload] => Array ( [name] => Picture 2.png [type] => image/png [tmp_name] => /tmp/phpIbDpBa [error] => 0 [size] => 69481 ) )
7. Form passed the plugins step (if enabled) OK
8. Debug End
As you can see, there's no email confirmation, no upload confirmation and it's also allowing to upload a file from a wrong type😟 (I tried also with a .zip file with the same result)
In case it helps, Joomla is using "Use Apache mod_rewrite" = Yes
Any help is welcome. It's turning me crazy.
Thanks a lot.