Gizra/restful — pull request #223 by BurningDog (2014-10-29 16:25:44+00:00)
Title: Corrected the values given by angularFileUpload to drupal

I couldn't get file uploads working in the restful_angular_example.module at ```/restful-example/form```. The file was being sent to drupal, uploaded fine, and showed up in the file_managed table, but this wasn't being reflected in angular.

The issue is that the name of the array within ```data``` returned by angularFileUpload is slightly different from what restful-app.js was using. I've attached a screenshot of the data structure (I did a ```console.log(data)```) in the same place as the code changes in this pull request.

Basically, it should be ```data.data.data``` not ```data.data.list```

This change then allowed angular to show that a file had been uploaded, and when I created an article node the image was there too.

![screen shot 2014-10-29 at 6 17 53 pm](https://cloud.githubusercontent.com/assets/787653/4829580/fbfda066-5f87-11e4-9578-b5f1e549d5dc.png)