ParseReact
ParseReact copied to clipboard
New Parse.Files need to be saved before setting them as values
If you create a Parse.File, it needs to be saved before it can be set to an object field. The code looks something like this:
var myImage = new Parse.File(fileName, fileData);
myImage.save().then(function() {
return ParseReact.Mutation.Set(myObject, { image: myImage }).dispatch();
});
This should be handled automatically by the Set mutation.
Thank you for reporting this issue and appreciate your patience. We've notified the core team for an update on this issue. We're looking for a response within the next 30 days or the issue may be closed.