Saving files to a dynamic path

Resolve a strict standards warning when saving files to a dynamic user directory in ChronoForms.

Overview

The warning is triggered by deprecated custom code using a reference operator in a file upload tutorial.
Update the custom code by removing the reference operator as specified in the linked FAQ to eliminate the warning while maintaining functionality.

Answered
Sa 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 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.
Sa SaLB 27 Mar, 2015
Thank you both, problem solved!
This topic is locked and no more replies can be posted.