Hi All,
The website http://www.medcheck.com.au/index.php has forms using Chronoforms Joomla extension where when a user fills the form out and tries to upload a document and submit, the enquiry form comes through fine but it doesnt come with the attached document even though file uploads is enabled.
File Upload Settings:
Enable uploads: Yes
Field names/allowed Extensions/sizes(KB): file_1:doc|pdf|txt|jpg|gif|zip{10000-1}
Full upload Path: /home/medcheck/public_html/components/com_chronocontact/uploads/patient-contact-form/ - " Writable "
FileName format: $filename = date('YmdHis').'_'.$chronofile['name'];
Default Path:/home/medcheck/public_html/components/com_chronocontact/uploads/patient_contact_form/
Debugging results below:
Form passed first SPAM check OK
Form passed the submissions limit (if enabled) OK
Form passed the Image verification (if enabled) OK
Form passed the server side validation (if enabled) OK
$_POST Array: Array ( [text_2] => test [text_5] => test [text_6] => 123 [text_4] => 123 [text_3] => 123 [text_8] => [email]robert@albainternet.com.au[/email] [text_16] => [chrono_verification] => 2k56i [{cf_name}] => Submit [f8a121b686052dc63f3e849e61f5037b] => 1 [1cf1] => 5fde2bb45c7eed880320e048ab1c7ff9 [chronoformname] => pharmacies_medicines_review_report )
$_FILES Array: Array ( [file_17] => Array ( [name] => test.docx [type] => application/vnd.openxmlformats-officedocument.wordprocessingml.document [tmp_name] => /tmp/phpY0332f [error] => 0 [size] => 9997 ) [file_18] => Array ( [name] => [type] => [tmp_name] => [error] => 4 [size] => 0 ) )
Form passed the plugins step (if enabled) OK
An email has been SENT successfully from (Medcheck)medcheck@medcheck.com.au to [email]medcheck@medcheck.com.au[/email]
Debug End
Redirect link set, click to test:
http://www.medcheck.com.au/index.php?op ... icle&id=34
Please help! Im stumped here..
Regards
Rob
The website http://www.medcheck.com.au/index.php has forms using Chronoforms Joomla extension where when a user fills the form out and tries to upload a document and submit, the enquiry form comes through fine but it doesnt come with the attached document even though file uploads is enabled.
File Upload Settings:
Enable uploads: Yes
Field names/allowed Extensions/sizes(KB): file_1:doc|pdf|txt|jpg|gif|zip{10000-1}
Full upload Path: /home/medcheck/public_html/components/com_chronocontact/uploads/patient-contact-form/ - " Writable "
FileName format: $filename = date('YmdHis').'_'.$chronofile['name'];
Default Path:/home/medcheck/public_html/components/com_chronocontact/uploads/patient_contact_form/
Debugging results below:
Form passed first SPAM check OK
Form passed the submissions limit (if enabled) OK
Form passed the Image verification (if enabled) OK
Form passed the server side validation (if enabled) OK
$_POST Array: Array ( [text_2] => test [text_5] => test [text_6] => 123 [text_4] => 123 [text_3] => 123 [text_8] => [email]robert@albainternet.com.au[/email] [text_16] => [chrono_verification] => 2k56i [{cf_name}] => Submit [f8a121b686052dc63f3e849e61f5037b] => 1 [1cf1] => 5fde2bb45c7eed880320e048ab1c7ff9 [chronoformname] => pharmacies_medicines_review_report )
$_FILES Array: Array ( [file_17] => Array ( [name] => test.docx [type] => application/vnd.openxmlformats-officedocument.wordprocessingml.document [tmp_name] => /tmp/phpY0332f [error] => 0 [size] => 9997 ) [file_18] => Array ( [name] => [type] => [tmp_name] => [error] => 4 [size] => 0 ) )
Form passed the plugins step (if enabled) OK
An email has been SENT successfully from (Medcheck)medcheck@medcheck.com.au to [email]medcheck@medcheck.com.au[/email]
Debug End
Redirect link set, click to test:
http://www.medcheck.com.au/index.php?op ... icle&id=34
Please help! Im stumped here..
Regards
Rob
Hi prebuilt79,
I notice that there are two different folders here uploads/patient-contact-form/ and uploads/patient_contact_form/. The form name appears to be the one with underscores but the upload path is the one with dashes.
This should work OK but there can be problems with dashes in names (MySQL doesn't like them unless they are fully quoted). I think that one version of ChronoForms was also not good at picking up custom upload paths though there is a fix for this.
I suggest that you check through the upload paths and change them to match the form name - with underscores and see if this resolves the problem.
Bob
I notice that there are two different folders here uploads/patient-contact-form/ and uploads/patient_contact_form/. The form name appears to be the one with underscores but the upload path is the one with dashes.
This should work OK but there can be problems with dashes in names (MySQL doesn't like them unless they are fully quoted). I think that one version of ChronoForms was also not good at picking up custom upload paths though there is a fix for this.
I suggest that you check through the upload paths and change them to match the form name - with underscores and see if this resolves the problem.
Bob
Hi Bob,
Thanks for your response, I have gone and changed the upload path to the following form but it still doesnt attach, please also find the debug below:
Changed upload path name to pharmacies_medicines_review_report
Form passed first SPAM check OK
Form passed the submissions limit (if enabled) OK
Form passed the Image verification (if enabled) OK
Form passed the server side validation (if enabled) OK
$_POST Array: Array ( [text_2] => test [text_5] => test [text_6] => test [text_4] => 123 [text_3] => 123 [text_8] => [email]robert@albainternet.com.au[/email] [text_16] => test [chrono_verification] => cBz2U [{cf_name}] => Submit [902e70774a465f70b9acfedad4fa0e4f] => 1 [1cf1] => 98c5eda9d84849ac6cb6dd239ddbad32 [chronoformname] => pharmacies_medicines_review_report )
$_FILES Array: Array ( [file_17] => Array ( [name] => recommended_icon.jpg [type] => image/pjpeg [tmp_name] => /tmp/phpClxIHq [error] => 0 [size] => 12577 ) [file_18] => Array ( [name] => [type] => [tmp_name] => [error] => 4 [size] => 0 ) )
Form passed the plugins step (if enabled) OK
An email has been SENT successfully from (Medcheck)medcheck@medcheck.com.au to [email]medcheck@medcheck.com.au[/email]
Debug End
Redirect link set, click to test:
http://www.medcheck.com.au/index.php?option=com_content&view=article&id=34
Regards
Rob
Thanks for your response, I have gone and changed the upload path to the following form but it still doesnt attach, please also find the debug below:
Changed upload path name to pharmacies_medicines_review_report
Form passed first SPAM check OK
Form passed the submissions limit (if enabled) OK
Form passed the Image verification (if enabled) OK
Form passed the server side validation (if enabled) OK
$_POST Array: Array ( [text_2] => test [text_5] => test [text_6] => test [text_4] => 123 [text_3] => 123 [text_8] => [email]robert@albainternet.com.au[/email] [text_16] => test [chrono_verification] => cBz2U [{cf_name}] => Submit [902e70774a465f70b9acfedad4fa0e4f] => 1 [1cf1] => 98c5eda9d84849ac6cb6dd239ddbad32 [chronoformname] => pharmacies_medicines_review_report )
$_FILES Array: Array ( [file_17] => Array ( [name] => recommended_icon.jpg [type] => image/pjpeg [tmp_name] => /tmp/phpClxIHq [error] => 0 [size] => 12577 ) [file_18] => Array ( [name] => [type] => [tmp_name] => [error] => 4 [size] => 0 ) )
Form passed the plugins step (if enabled) OK
An email has been SENT successfully from (Medcheck)medcheck@medcheck.com.au to [email]medcheck@medcheck.com.au[/email]
Debug End
Redirect link set, click to test:
http://www.medcheck.com.au/index.php?option=com_content&view=article&id=34
Regards
Rob
Hi Rob,
Do you have Attach files set to Yes on the Email Setup?
If you do then are the files being uploaded to the correct folder?
Bob
Do you have Attach files set to Yes on the Email Setup?
If you do then are the files being uploaded to the correct folder?
Bob
Hi Rob,
In addition, please doublecheck the name of your file input. The debug states there's two of them, 'file_17' and 'file_18'. However, your form setup suggests it is expected to be 'file_1' from the 'Field names/allowed Extensions/sizes(KB)' setting.
/Fredrik
In addition, please doublecheck the name of your file input. The debug states there's two of them, 'file_17' and 'file_18'. However, your form setup suggests it is expected to be 'file_1' from the 'Field names/allowed Extensions/sizes(KB)' setting.
/Fredrik
Alright! Thats fixed it, it was the name of the file input. Help much appreciated!
Cheers
Rob
Cheers
Rob
This topic is locked and no more replies can be posted.