Hey everyone,
We are working on our app using Unity, we want to get the user’s profile pictures into our database {Users}, could you please explain how to do that?
Hey everyone,
We are working on our app using Unity, we want to get the user’s profile pictures into our database {Users}, could you please explain how to do that?
Hi Hassan,
First of all, welcome to the community!
Do you need to upload the pictures using the API or manually?
Regards,
Mark
API of course.
When the users upload their pictures, I want these pics to be on my database using API.
The recommended approach goes like this:
profileURL
property, so that when the user object is saved in the database, the profileURL
will contain a string value which is the URLBackendlessUser
object, it will contain the profileURL
property and you can fetch the file.Hope this helps.
Regards,
Mark
In this case, what if the user uploaded an image then an error happened in the registration ( the uploaded image doesn’t have an user)?
In this case you can delete the file using this API:
https://backendless.com/docs/dotnet/files_file_deletion.html
Thank you that helped me.
I may ask again for some problems!
Thanks again!!