title: get the path of an uploaded file in drupal 7
body: <p>I am now working with drupal 7 and this a form to upload a photo from desktop:</p>
  
  <pre><code>     $form['Background image'] = array(
      '#type' =&gt; 'file', 
      '#title' =&gt; t('Image'), 
      '#page arguments' =&gt; array('testform'),
      '#access callback' =&gt; TRUE,
      '#description' =&gt; t('Click "Browse..." to select an image to upload.'),
      //Get the file path
  
      );
  </code></pre>
  
  <p>my question is how to get the path  of the selected photo so I can later create an object (using the photo´s path ) to be saved in the database ?</p>