Set a relation to a file reference

Hello,

I’m trying to set a relation from a users table to a file reference.
currently I save the file using Backendless.Files.saveFile( path, fileName, fileContent, overwrite )
I get the correct url back for the file
then I update the user:

const imageUrl = …
var user = {
objectId: objectId,
photo: imageUrl,
}
Backendless.Data.of( “Users” ).save( user )…

however this just adds the url to the users table but doesnt actually create a relation.
Is there any other way?

thanks

Hello,

Are you saying the url you store doesn’t show up as a link? Did you pre-created the file reference column before using it in the code?

Regards,
Mark