form uploads?

rusty 19 Mar, 2007
Does chronoforms support form Image/file uploads?
Max_admin 04 Apr, 2007
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.


/*$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'] ;*/
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
This topic is locked and no more replies can be posted.

VPS & Email Hosting 20% discount
hostinger