I know this has been asked to death and i've search all the post i could find to help resolve this issue but I cant seem to locate the problem.
My form submits just fine, I receive the email as expected but there is just no file attached to the mail or in the upload folder. When i submit the form it seems to take a few moments depending on the size of the file i attach so I'm guessing the file is uploading after I choosing submit but not sure what's going wrong after that. I have followed all the instructions in the FAQ's section and looked at every issue i've seen in other post but none seemed to help. I even re-uploaded the upgrade package file to make sure i had the latest and greatest but still no go.
I really hated to post this question with so many other post already with this issue but i'm not sure what else i can do.
Thanks for any help and i've attached my form backup here.
mark
Hi Mark,
Do you get the email ? do you see the file uploaded under components/com_chronocontact/uploads/ ? which Joomla version or Chronoforms version do you have ?
Cheers
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Yea, I'm getting the email but just no attachment and there are no files in the upload folder which one thing that caused me to scratch my head but of the time it takes to submit, it makes me thing that the file is being upload.
Joomla version 1.5.2 with the lastest release of Chronoforms, i even made sure that Chronoforms was the most up today version by uploading the upgrade package.
thanks,
Mark
Hi Mark,
Ok, open components/com_chronocontact/chronocontact.php and find some line starting with "chmod", its near the end, now comment it by adding 2 slashes (//) at the start of it
let me know if this will do it!
Cheers
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
There are already 2 slashes in the front of "Chmod", so i should add 2 more?
thanks
Mark
Hi Mark,
no, can you copy and paste here the whole handle_uploaded_files function code please ?
Cheers
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
I have the same issue, emails are recieved but the file is not attached. When you say check the directory 'uploads' do you mean 'upload' and my file is not there.
Can you advise?
Here you go..
/**
* Handle uploaded files
*
* @param unknown_type $uploadedfile
* @param string $filename
* @param string $limits
* @param string $directory
* @return unknown
*/
function handle_uploaded_files($uploadedfile, $filename, $limits = TRUE, $directory = FALSE)
{
//global $mosConfig_absolute_path, $mosConfig_fileperms;
//$fileperms = "0644";
/*if ( strlen($mosConfig_fileperms) > 0 ) {
$fileperms = octdec($mosConfig_fileperms);
}*/
$uploaded_files = "";
$upload_path = JPATH_SITE.'/components/com_chronocontact/upload/';
if ( is_file($uploadedfile) ) {
$targetfile = $upload_path.$filename;
while ( file_exists($targetfile) ) {
$targetfile = $upload_path.rand(1,1000).'_'.$filename;
}
move_uploaded_file($uploadedfile, $targetfile);
//if ( strlen($fileperms) > 0 ) {
// chmod($targetfile, $fileperms);
//}
$uploaded_files = $targetfile;
}
return $uploaded_files;
}
/**
* Display JavaScript alert box as error message
*
* @param string $message
*/
function showErrorMessage($message) {
echo "<script> alert('$message'); </script>\n";
}
?>
thanks for your help Max
Mark
Hi Mark,
I would say now only check the upload folder permissions, is it writable ?
Cheers
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Yea, i even chmod the entire site, files and folders to 777 but still didn't produce any results. Kind of crazy..
thanks,
Mark
Hi Mark,
No ideas here now then, try to search the forums because some users had special case issues which you may look at too!
Best regards,
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
I'm still beating my head against the wall with this issue but i thought i would share the comments from the system admin with my hosting provider of my dedicated server.
Comment 1:
Hi Mark,
The file upload issue may be a timeout thing. PHP file uploads are going to run into the PHP.ini configurations for two items: script timeout, and max upload size. Both of these settings are in the PHP Configuration Editor in WHM. Try uploading a very small file, which will assuredly upload before either of those limits trip it, and let me know if you have success.
Also, please let me know the path to the upload script, so that I can check the Apache error logs for any PHP errors triggered during the process. Thank you!
Comment 2:
Hi Mark,
I just did a test on your contact form. While doing so, I tailed the apache error log. No errors were triggered. I'm afraid there's not much else I can do on this issue, it appears to be a problem with the script. Any server-side issue would reveal itself through error logs.
Sorry I couldn't be of more help,
Still sort of lost on this one so if anyone else has any idea i would appreciate any suggestions.
thanks,
Mark
Hi Mark,
Hard to know where to go from here. We know that - in other circumstances - the script works perfectly well . . . and that there are some settings that can get in the way.
I think that my approach now would be to set error reporting and Joomla debug on and start adding in debug text to try to track what is (or isn't) happening.
Bob
Bob
Have you ever had one of those days/weeks where you just cant do s**t right.🙂 "Mark is beating his head against the wall" This should be a good example of how my over thinking a problem blinds me from locating the truth. You've saved me here Bob and man i owe you a beer or 2. or 3😛
Ok, I'm not going to let you off that easy thou. Is there some form of Java or code example you could point me to that would offer a way to upload the file before it is submitted. Just looking for a way for the user to have a visual way of knowing the that the file is being upload so that the form doesn't just sit there and give the appearance that it's not doing anything because i may have to offer larger upload sizes than normal.
thanks so much for your keen eye on this one.🙂
Mark
Exactly like that.. my test form has 3 image fields. Should i try add one next to each field or do a single one for all ?
Mark
Hi Mark,
I think this is your choice for sure!!
Cheers
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Hi, I've read all the post about uploading and still no results - the files are not uploaded, not sent, email with other details does arrive - I attach all the code and the form itself for check up: (Thanks)
Form Code:
<label>You may attach files - resume, screenshot, etc.<br />
<p style="left: 75px; position:relative;">
<input name="file1" type="file" id="file1" size="30"/><br />
<input name="file2" type="file" id="file2" size="30"/><br />
<input name="file3" type="file" id="file3" size="30"/><br />
</p>
</label>
I've changed the permission of UPLOAD directory to 777 and added enctype="multipart/form-data" at Form Tag attach.
Anything else I forgot?
Thank you, Eugene.
Hi, did you configure the uploads tab ? I cant find your form attached, can you post a screenshot for the uploads tab or attach the whole form ?
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
Hi,sorry for that (it didn't upload because the cfbak extension isn't allowed and I didn't pay attention to this). Anyway just rename .txt to .cfbak.
Thank you.
Eugene.
Exactly, upload fields cant contain only * , look at the hint at the tooltip beside the field for the appropriate formula to be written here!
Cheers
Max
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.