Hi guys,
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:
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.
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.
Hi ctasada,
do you have uploads enabled ? files types will be checked after the file is uploaded to the PHP temporarily folder! if you don't get an error about wrong file type then I guess your uploads are not enabled!
Max
do you have uploads enabled ? files types will be checked after the file is uploaded to the PHP temporarily folder! if you don't get an error about wrong file type then I guess your uploads are not enabled!
Max
Hi Max,
I've double checked:
Files Upload Settings: Enable uploads = Yes
from PHP Information
Enable uploads = On
upload_max_filesize = 200MB
upload_tmp_dir = /tmp/
What else can I check?
I've double checked:
Files Upload Settings: Enable uploads = Yes
from PHP Information
Enable uploads = On
upload_max_filesize = 200MB
upload_tmp_dir = /tmp/
What else can I check?
Hi, do you have any plugins enabled under the plugins tab ?
Max
Max
Hi Max,
No plugin enabled.
Is there any way of enabling a more detailed debug log? or do some kind of debugging, with firebugs or something similar?
Thanks.
No plugin enabled.
Is there any way of enabling a more detailed debug log? or do some kind of debugging, with firebugs or something similar?
Thanks.
Hi ctasada,
Please upgrade to RC5.2 and retest and let me know ? and please show me a screenshot for the uploads tab and show me your form code again !
Regards,
Max
Please upgrade to RC5.2 and retest and let me know ? and please show me a screenshot for the uploads tab and show me your form code again !
Regards,
Max
Hi Max,
I've done the upgrade and executed the "Upgrade SQL" operation, and everything is the same:
That's an screenshot of the "Forms Manager" line
[attachment=2]screenshot_01.png[/attachment]
The General Tab
[attachment=1]screenshot_02.png[/attachment]
And the "Files Uploads" Tab
As you can see, the "Forms Manager" says that email is disabled, but in the "General Tab" is enabled, I don't known if can point to some other problem.
I can send you the form backup if needed.
Thanks again.
Carlos
I've done the upgrade and executed the "Upgrade SQL" operation, and everything is the same:
<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>
That's an screenshot of the "Forms Manager" line
[attachment=2]screenshot_01.png[/attachment]
The General Tab
[attachment=1]screenshot_02.png[/attachment]
And the "Files Uploads" Tab
As you can see, the "Forms Manager" says that email is disabled, but in the "General Tab" is enabled, I don't known if can point to some other problem.
I can send you the form backup if needed.
Thanks again.
Carlos
Hi, in your code the file field is called file_upload but in the uploads tabe you use file_4, please fix this and it should work!
Regards
Max
Regards
Max
Thanks a lot Max,
For some reason I though I needed to have the field_id and not the field_name.
I've also solved the email problem, checking in the backup file I found that the enabled flag in the cfbak_start_emails was 0, even when seemed to be enabled in the form, so I manually modified it and restored the form from the backup.
Now everything seems to work as expected.
Thanks for your help.
For some reason I though I needed to have the field_id and not the field_name.
I've also solved the email problem, checking in the backup file I found that the enabled flag in the cfbak_start_emails was 0, even when seemed to be enabled in the form, so I manually modified it and restored the form from the backup.
Now everything seems to work as expected.
Thanks for your help.
This topic is locked and no more replies can be posted.