title: CakePHP-2.0, how can i upload an image for user profile?
body: <p>I have used CakeDC users plugin.
  I need to upload/add a profile picture for an user.</p>
  
  <p>How can i do this?</p>
  
  <p>Can anyone post the code to have upload image?</p>
  
  <p><a href="http://book.cakephp.org/2.0/en/core-libraries/helpers/form.html" rel="nofollow">http://book.cakephp.org/2.0/en/core-libraries/helpers/form.html</a></p>
  
  <p>I added this but i got only a button.</p>
  
  <pre><code>echo $this-&gt;Form-&gt;create('Document', array('enctype' =&gt; 'multipart/form-data'));
  echo $this-&gt;Form-&gt;file('Document.submittedfile');
  echo $this-&gt;Form-end();
  </code></pre>
  
  <p>How can i set/get the path of uploaded file?</p>