I have read through various posts and still can not get my file to upload - or email.
Currently my test page is here - https://www.communitychoicecu.com/index.php?option=com_chronocontact&chronoformname=TESTAPP
I have added form tag attachment - enctype='multipart/form-data'
The setting in Joomla are correct from what I can tell and the file upload

Form Code -
The debug shows:
Heard: Newspaper Article
File: NOFILE
Files:
6. $_FILES Array: Array ( [file_1] => Array ( [name] => 300Word.doc [type] => application/msword [tmp_name] => /tmp/phpg4Fokl [error] => 0 [size] => 70144 ) )
7. Upload routine started for file upload by : file_1
8. Form passed the plugins step (if enabled) OK
9. An email has been SENT successfully from ...
10. Debug End
Please help :o
Currently my test page is here - https://www.communitychoicecu.com/index.php?option=com_chronocontact&chronoformname=TESTAPP
I have added form tag attachment - enctype='multipart/form-data'
The setting in Joomla are correct from what I can tell and the file upload

Form Code -
<?php
if ( !$mainframe->isSite() ) { return; }
/*
function to generate a random alpha-numeric code
using a specified pattern
*
* @param $pattern string
* @return string
*/
function generateIdent($pattern='AA9999A')
{
$alpha = array("A","B","C","D","E","F","G","H",
"J","K","L","M","N","P","Q","R","S","T","U","V","W",
"X","Y","Z");
$digit = array("1","2","3","4","5","6","7","8","9");
$return = "";
$pattern_array = str_split($pattern, 1);
foreach ( $pattern_array as $v ) {
if ( is_numeric($v) ) {
$return .= $digit[array_rand($digit)];
} elseif ( in_array(strtoupper($v), $alpha) ) {
$return .= $alpha[array_rand($alpha)];
} else {
$return .= " ";
}
}
return $return;
}
?>
<div class="form_item">
<div class="form_element cf_text"> <span class="cf_text"><strong>COMMUNITY CHOICE FOUNDATION SCHOLARSHIP APPLICATION</strong><br>
Thank you for your interest in the Community Choice Foundation Scholarship. Please note that you must complete this application in full - it cannot be saved for future access. We recommend you review the eligibility information and essay topic available at <a href="https://www.communitychoicecu.com/index.php/community-services/scholarships" target="_blank">communitychoicecu.com/scholarships</a> prior to beginning your application. It is advisable to draft your essay prior to beginning the application so you may copy and paste it into the field provided. If you are ready to complete the application, please proceed. </span> </div>
<div class="cfclear"> </div>
<div class="form_item">
<div class="form_element cf_dropdown">
<label class="cf_label" style="width:250px;">How did you hear about the Community Choice Foundation Scholarship?</label>
<select class="cf_inputbox validate-selection" id="HeardBy" size="1" title="" name="HeardBy">
<option value="">Choose Option</option>
<option value="School Counselor">School Counselor</option>
<option value="Newspaper Article">Newspaper Article</option>
<option value="Facebook/Twitter">Facebook/Twitter</option>
<option value="Internet Search">Internet Search</option>
<option value="CCCU Website/e-Mail">CCCU Website/e-Mail</option>
<option value="CCCU Employee">CCCU Employee</option>
<option value="Other">Other</option>
</select>
</div>
<div class="cfclear"> </div>
</div>
<div class="form_item">
<div class="form_element cf_text"></div>
</div>
<div class="form_item"><div class="form_element cf_textarea">
<table width="700" border="1">
<tr>
<td width="289"><div align="center"><strong>Charitable Organization</strong></div></td>
<td width="172"><div align="center"><strong>Hours Served</strong></div></td>
<td width="257"><div align="center"><strong>Reference Name & Number</strong></div></td>
</tr>
<tr>
<td><div align="center"><span class="form_element cf_textbox">
<textarea name="CharityName1" cols="30" class="cf_inputbox" id="CharityName1" title=""></textarea>
</span></div></td>
<td><div class="form_item">
<div class="form_element cf_dropdown">
<div align="center">
<select class="cf_inputbox" id="CharityHour1" size="1" title="" name="CharityHour1">
<option value="">Choose Option</option>
<option value="5">1-5 hours</option>
<option value="10">6-10 hours</option>
<option value="15">Over 10 hours</option>
</select>
</div>
</div>
<div class="cfclear"> </div>
</div>
<td><div align="center"><span class="form_element cf_textbox">
<textarea name="CharityRef1" cols="30" class="cf_inputbox" id="CharityRef1" title=""></textarea>
</span></div></td>
</tr>
<tr>
<td><div align="center"><span class="form_element cf_textbox">
<textarea name="CharityName2" cols="30" class="cf_inputbox" id="CharityName2" title=""></textarea>
</span></div></td>
<td><div class="form_item">
<div class="form_element cf_dropdown">
<div align="center">
<select class="cf_inputbox" id="CharityHour2" size="1" title="" name="CharityHour2">
<option value="">Choose Option</option>
<option value="5">1-5 hours</option>
<option value="10">6-10 hours</option>
<option value="15">Over 10 hours</option>
</select>
</div>
</div>
<div class="cfclear"> </div>
</div></td>
<td><div align="center"><span class="form_element cf_textbox">
<textarea name="CharityRef2" cols="30" class="cf_inputbox" id="CharityRef2" title=""></textarea>
</span></div></td>
</tr>
<tr>
<td><div align="center"><span class="form_element cf_textbox">
<textarea name="CharityName3" cols="30" class="cf_inputbox" id="CharityName3" title=""></textarea>
</span></div></td>
<td><div class="form_item">
<div class="form_element cf_dropdown">
<div align="center">
<select class="cf_inputbox" id="CharityHour3" size="1" title="" name="CharityHour3">
<option value="">Choose Option</option>
<option value="5">1-5 hours</option>
<option value="10">6-10 hours</option>
<option value="15">Over 10 hours</option>
</select>
</div>
</div>
<div class="cfclear"> </div>
</div></td>
<td><div align="center"><span class="form_element cf_textbox">
<textarea name="CharityRef3" cols="30" class="cf_inputbox" id="CharityRef3" title=""></textarea>
</span></div></td>
</tr>
<tr>
<td><div align="center"><span class="form_element cf_textbox">
<textarea name="CharityName4" cols="30" class="cf_inputbox" id="CharityName4" title=""></textarea>
</span></div></td>
<td><div class="form_item">
<div class="form_element cf_dropdown">
<div align="center">
<select class="cf_inputbox" id="CharityHour4" size="1" title="" name="CharityHour4">
<option value="">Choose Option</option>
<option value="5">1-5 hours</option>
<option value="10">6-10 hours</option>
<option value="15">Over 10 hours</option>
</select>
</div>
</div>
<div class="cfclear"> </div>
</div></td>
<td><div align="center"><span class="form_element cf_textbox">
<textarea name="CharityRef4" cols="30" class="cf_inputbox" id="CharityRef4" title=""></textarea>
</span></div></td>
</tr>
<tr>
<td><strong>Total</strong> Hours for 2010 <strong>Charitable/Volunteer</strong> Participation</td>
<td colspan="2"><span class="form_element cf_dropdown">
<select class="cf_inputbox" id="CharityHoursTOTAL2" size="1" title="" name="CharityHoursTOTAL2">
<option value="">Choose Option</option>
<option value="1">8-20 hours</option>
<option value="2">21-50 hours</option>
<option value="3">51 hours or more</option>
</select>
</span></td>
</tr>
</table>
</div>
</div>
<div class="form_item">
<div class="form_element cf_text"> <span class="cf_text"><strong>COLLEGE INFORMATION</strong></span> </div>
<div class="cfclear"> </div>
</div>
<div class="form_item">
<div class="form_element cf_textbox">
<label class="cf_label" style="width:250px;">Name of College</label>
<input class="cf_inputbox" maxlength="150" size="30" title="" id="CollegeName" name="CollegeName" type="text" />
</div>
<div class="cfclear"> </div>
</div>
<div class="form_item">
<div class="form_element cf_textbox">
<label class="cf_label" style="width:250px;">College Street Address</label>
<input class="cf_inputbox" maxlength="150" size="30" title="" id="CollegeAddress" name="CollegeAddress" type="text" />
</div>
<div class="cfclear"> </div>
</div>
<div class="form_item">
<div class="form_element cf_textbox">
<label class="cf_label" style="width:250px;">College City</label>
<input class="cf_inputbox" maxlength="150" size="30" title="" id="CollegeCity" name="CollegeCity" type="text" />
</div>
<div class="cfclear"> </div>
</div>
<div class="form_item">
<div class="form_element cf_textbox">
<label class="cf_label" style="width:250px;">College State </label>
<input class="cf_inputbox" maxlength="150" size="30" title="" id="CollegeState" name="CollegeState" type="text" />
</div>
<div class="cfclear"> </div>
</div>
<div class="form_item">
<div class="form_element cf_textbox">
<label class="cf_label" style="width:250px;">Zip
<input class="cf_inputbox" maxlength="150" size="30" title="" id="CollegeZip" name="CollegeZip" type="text" />
<div class="cfclear"> </div>
</div>
<div class="form_item">
<div class="form_element cf_textbox">
<label class="cf_label" style="width:250px;">Intended Major</label>
<input class="cf_inputbox" maxlength="150" size="30" title="" id="CollegeMajor" name="CollegeMajor" type="text" />
</div>
<div class="cfclear"> </div>
</div>
<div class="form_item">
<div class="form_element cf_dropdown">
<label class="cf_label" style="width:250px;">Intended Degree</label>
<select class="cf_inputbox" id="CollegeDegree" size="1" title="" name="CollegeDegree">
<option value="">Choose Option</option>
<option value="Associate's Degree">Associate's Degree</option>
<option value="Bachelor's Degree">Bachelor's Degree</option>
<option value="Graduate Degree">Graduate Degree</option>
</select>
</div>
<div class="cfclear"> </div>
</div>
<div class="form_item">
<div class="form_element cf_textbox">
<label class="cf_label" style="width:250px;">Desired Profession</label>
<input class="cf_inputbox" maxlength="150" size="30" title="" id="CollegeProfession" name="CollegeProfession" type="text" />
</div>
<div class="cfclear"> </div>
</div>
<div class="form_item">
<div class="form_element cf_text"> <span class="cf_text"><strong>SCHOLARSHIP ESSAY</strong></span> </div>
<div class="cfclear"> </div>
</div>
<div class="form_item">
<div class="form_element cf_text"> <span class="cf_text">Community Choice Credit Union applauds you for your commitment to Michigan and your choice to attend a Michigan school; we want to hear your story. Please discuss in your essay why you have decided to remain a Michigan resident and how your course work and intended degree will allow you to enrich Michigan, its communities, or a Michigan industry. Your essay should be approximately 300 words. You may compose your essay in the space below or copy and paste it. </span> </div>
<div class="cfclear"> </div>
</div>
<div class="form_item">
<div class="form_element cf_textarea">
<label class="cf_label" style="width:250px;">Essay: </label>
<p>
<textarea class="cf_inputbox" rows="3" id="Essay" title="" cols="200" name="Essay"></textarea>
</p>
<div class="form_item">
<div class="form_element cf_textbox">
<label class="cf_label" style="width:100px;">File</label>
<input class="cf_inputbox" maxlength="150" size="30" title="" id="file_1" name="file_1" type="file" />
</div>
<div class="cfclear"> </div>
</div>
</div>
<div class="cfclear"><?php
$ident = generateIdent();
echo "<div>Ident is $ident</div>";
?>
<p><input type='hidden' name='ident' id='ident'
value='<?php echo $ident; ?>' /></p>
</div>
</div>
<div class="form_item">
<div class="form_element cf_text">
<p class="cf_text">Please ensure that you have entered all information truthfully and accurately. If you have not completed the application as directed, it will be ineligible for review. If you are chosen as a finalist, you will be required to verify your grade point average and college acceptance. Additional documentation including a letter of recommendation may also be requested. </p>
<p class="cf_text"><strong>By submitting this application, you agree to the following terms:</strong> I understand this application becomes the property of Community Choice Foundation. I authorize Community Choice to use my name, essay contents, and photographs taken at scholarship events in advertising and professional public releases as they see fit. Scholarship recipients will be chosen by the Community Choice Foundation Scholarship Committee and Board. All decisions made by the committee are final. Employees, board members, and relatives of employees and board members are not eligible to apply. Relatives are defined as "relatives by blood, marriage, or adoption, or any individual living in the same household as the employee, board member, or affiliate." </p>
<p class="cf_text"><strong>If chosen as a recipient, you would be required to repay the scholarship if you didn't meet the following terms: </strong></p>
<ol>
<li>Recipient must maintain a minimum 2.5 G.P.A.</li>
<li>Recipient must complete the academic year in which the scholarship is awarded.</li>
<li>Recipient may not transfer to an out of state school the academic year in which the scholarship is awarded.</li>
<li>Recipient must provide transcript of grades following the term(s) in which the scholarship funds applied to student tuition bill.</li>
<li>Recipient will sign a document agreeing to these terms and conditions prior to receiving funds. If the recipient is under 18, a parent or guardian will also be required to sign.<br>
<br>
<strong class="cf_text"><br>
</strong></li>
</ol>
</div>
<div class="form_element cf_button">
<input value="Submit" name="button_18" type="submit" /><input type="reset" name="reset" value="Reset"/>
</div></div>
The debug shows:
Heard: Newspaper Article
File: NOFILE
Files:
6. $_FILES Array: Array ( [file_1] => Array ( [name] => 300Word.doc [type] => application/msword [tmp_name] => /tmp/phpg4Fokl [error] => 0 [size] => 70144 ) )
7. Upload routine started for file upload by : file_1
8. Form passed the plugins step (if enabled) OK
9. An email has been SENT successfully from ...
10. Debug End
Please help :o
Hi hhawkins25,
Everything looks OK - but I think something is breaking when ChronoForms tries to re-locate the file from the tmp folder to the TEST folder.
Hard to say what that is without adding debug code to check exactly what is happening (or not).
Bob
Everything looks OK - but I think something is breaking when ChronoForms tries to re-locate the file from the tmp folder to the TEST folder.
Hard to say what that is without adding debug code to check exactly what is happening (or not).
Bob
That helps I do see in the server config the TMP is not defined:
upload_tmp_dir no value no value
I'll go back to the host and define that to see if it resolves it.
upload_tmp_dir no value no value
I'll go back to the host and define that to see if it resolves it.
This topic is locked and no more replies can be posted.
