[symfony-users] problem displaying a uploaded image

2011-04-13 Thread Laxmi
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);

Re: [symfony-users] problem displaying a uploaded image

2011-04-13 Thread Gareth McCumskey
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 =