Forums

Saving files to a dynamic path

SaLB 26 Mar, 2015
Hello everyone,

I found a tutorial for doing this, it's working perfectly, finally I can save files to a dynamic user related directory, but after submiting the form I'm getting a warning related to the custom code used.

Please, any help is much apreciated. (Pic attached)

SLB

This is the warning, although, the files are being saved in a dynamic dir.
[IMG]http://i58.tinypic.com/o5dp3l.jpg[/IMG]

Link to the tutorial.
http://www.chronoengine.com/faqs/53-cfv4/cfv4-file-uploads/2630-how-can-i-upload-files-under-some-users-folder.html
Max_admin 26 Mar, 2015
Answer
1 Likes
Instead of using this:
$user =& JFactory::getUser();

please use:
$user = JFactory::getUser();
Max, ChronoForms developer
ChronoMyAdmin: Database administration within Joomla, no phpMyAdmin needed.
ChronoMails simplifies Joomla email: newsletters, logging, and custom templates.
SaLB 27 Mar, 2015
Thank you both, problem solved!
This topic is locked and no more replies can be posted.