Hi hear is the code which I used to upload image and save the image
name in database.
$dir = sfConfig::get('sf_web_dir').'\images\user\ ';
$user = $this-getUser()-getAttribute('user');
$filename = $_FILES[file][name];
move_uploaded_file($_FILES[file][tmp_name],$dir.$filename);
You are mixing backslashes and forward slashes
On Wed, Apr 13, 2011 at 9:11 AM, Laxmi laxmipsa...@gmail.com wrote:
Hi hear is the code which I used to upload image and save the image
name in database.
$dir = sfConfig::get('sf_web_dir').'\images\user\ ';
$user =