this is a snippet I used before to do this and will be available at next versions ASAP :
use this code at your own risk and you will have to fix any problems with it, it cant work as it is.
use this code at your own risk and you will have to fix any problems with it, it cant work as it is.
/*$uploaddir = $mosConfig_absolute_path . 'components/com_attachement/upload';
if(is_uploaded_file($_FILES['file']['tmp_name']))
{
move_uploaded_file($_FILES['file']['tmp_name'],$uploaddir.'/'.$_FILES['file']['name']);
}
if (move_uploaded_file($_FILES['file']['tmp_name'],$uploaddir.'/'.$_FILES['file']['name'])) {
print "Your file has been uploaded successfully! Yay!";
///////////////////////////// email //////////////////////////
$attachment = $uploaddir.'/'.$_FILES['file']['name'] ;*/
This topic is locked and no more replies can be posted.