Hello, i am following this tutorial:
http://www.chronoengine.com/faqs/53-cfv4/cfv4-file-uploads/2630-how-can-i-upload-files-under-some-users-folder.html
and this thread:
http://www.chronoengine.com/forums/posts/t90947/p315781.html
but i can't make it work no matter what i do :?
First of all i use Joomla 3 & ChronoForms V5, dont know if this code is working on it.
In Designer Tab
1 File Field (Field Name= file01, Field ID=file1)
In Setup Tab
1 Custom Code field with this code:
1 Files Upload (Files config=file01:jpg-png-gif, Upload path=images/file1)
Dont know if the images/file1 path is correct but thats where i want the users folder to be created and the files uploaded.
Anyone that can see what i am doing wrong?
http://www.chronoengine.com/faqs/53-cfv4/cfv4-file-uploads/2630-how-can-i-upload-files-under-some-users-folder.html
and this thread:
http://www.chronoengine.com/forums/posts/t90947/p315781.html
but i can't make it work no matter what i do :?
First of all i use Joomla 3 & ChronoForms V5, dont know if this code is working on it.
In Designer Tab
1 File Field (Field Name= file01, Field ID=file1)
In Setup Tab
1 Custom Code field with this code:
<?php
$user =& JFactory::getUser();
$form->set('upload_files_file1', 'upload_path', JOOMLA_PATH."/images/uploads/{$user->username}/");
?>
1 Files Upload (Files config=file01:jpg-png-gif, Upload path=images/file1)
Dont know if the images/file1 path is correct but thats where i want the users folder to be created and the files uploaded.
Anyone that can see what i am doing wrong?