title: Parse Cloud Code - Get URL of PFFile
body: <p>Ok this should be a relatively simple one. Apologies i am an iOS developer usually trying to understand Javascript.</p>
  
  <p>I have a PFFile that is being saves into a PFObject from iOS.</p>
  
  <p>I now need to send the URL of the image to a web service, which i am trying to do using an afterSave method on Cloud Code.</p>
  
  <p>I have the object being fetched, and i can see the file contained within it. But i can't work out how to access the URL value.</p>
  
  <p>I have tried various approaches, and i'm sure it's me not understanding how to access the value on an object, nested in another object. I've listed what i mostly tried below.</p>
  
  <p>I have everything else working apart from this so help would be greatly appreciated.</p>
  
  <p>Thanks</p>
  
  <p>Gareth</p>
  
  <pre><code>var image = request.object.get("userPhoto")
  
  console.log(image);
  
  var imageURL = image.url
  var imageURL = image.'url'
  var imageURL = image.(url)
  var imageURL = image.('url')
  
  console.log(imageURL);
  </code></pre>