Start a new topic

No MimeType Saved when saving file

using the angularjs code to save an image file; it is working but there is no mime type being persisted



console.log($scope.uploadme);



var fileObj = new $kinvey.File({

_filename: $scope.uploadme.name,

_public: true,

size : $scope.uploadme.size

});



fileObj.$save($scope.uploadme.type).$promise.then(function () {



fileObj.$upload($scope.uploadme, $scope.uploadme.type).$promise

.then(function (_result) {

console.log("$upload: " + JSON.stringify(_result));

_callback(_result);

}, function error(err) {

console.log('[$upload] received error: ' + JSON.stringify(err));

_callback();

});

});

},

Aaron, the library you are using is not distributed or maintained by Kinvey. I recommend you contact the [creator of the library](https://github.com/ninjatronic/angular-kinvey), and open an issue [there](https://github.com/ninjatronic/angular-kinvey/issues).



Alternatively, you can choose to use the Kinvey AngularJS library available [here](http://devcenter.kinvey.com/angular).
looks like i did not see Kinvey's angularjs library when I started my investigation, will look to migrate to your supported version after initial deliverable
Login or Signup to post a comment