Hi,
When I try the code provided by the AngularJS fork of the jQuery file upload project I notice that on line 2512 of uploader.js there is the following line:
fileUpload.addFieldData($
scope.name, data._response.result.files[0].result);
I don't think 'result' forms part of the response (maybe it did in the past). As a result an exception is thrown later on at this code:
var generateFileObject = function generateFileObjects(objects) {
angular.forEach(objects, function (value, key) {
var fileObject = {
name: value.filename,
size: value.length,
url: value.url,
thumbnailUrl: value.url,
deleteUrl: value.url,
deleteType: 'DELETE',
result: value
};
In this case the 'objects' array contains one 'undefined' entry. If I delete 'results' in above code then 'objects' contains an object with values.
Is there a bug in the code?
Cheers
Ted