Hello
I am trying to sign up user with the following code:
user1 = new BackendlessUser();
user1.setEmail(em);
user1.setPassword§;
user1.setProperty(“name”, n);
user1.setProperty(“UserPhoto”, url);
Backendless.UserService.register(user1, new AsyncCallback<BackendlessUser>() { @Override
public void handleResponse(BackendlessUser backendlessUser) {
}
But I get an error …
the error code is : 1020 … and the message is : missing ___ class property for entity :UserPhoto
I 'v searched a lot but haven’t found The solutionThanks
The error message you’re getting indicates that the value you send for the “UserPhoto” property is not just string. Double check the values in debugger and also inspect request/response using Chrome’s Network tab.
if (userphoto.getFileURL() != null) {
url = new URL(userphoto.getFileURL());
Toast.makeText(SignUpActivity.this,
“SAVED”, Toast.LENGTH_SHORT).show();
}that is the URL… it is a string !