question

cbetty702 avatar image
cbetty702 asked

Upload JSON file Unity (entity)

Hello,

I've been reading up articles and can't seem to find a solution to this problem. I need to upload a user's progress data (which is saved in JSON format) to their accounts as they play, but I can't find a way to upload this type of file?

So far I've tried out this: https://community.playfab.com/questions/121/205469488-How-to-upload-files-to-PlayFab-s-Content-Service.html?page=1&pageSize=10&sort=oldest but I couldn't figure out how to properly update the script (Unity no longer uses WWW), or change it to upload a JSON file instead.

I then tried this: https://docs.microsoft.com/en-us/gaming/playfab/features/data/entities/entity-files but then returned an error from Playfab (it needed a file path and filename).

I'm definitely not a coder and have been trying for at least a week now on this issue, but to no avail. Help much appreciated! :)

Player Dataunity3dentitiesdata
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

scottadams avatar image
scottadams answered

Are you using objects? (I.e the new interface?) If so why not upload as an object?

Entity Objects Example

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Citrus Yan avatar image
Citrus Yan answered

What’s the estimated size of the JSON file you’d need to upload? If the size is rather small, like below 1k bytes, then using Entity Objects would be a simpler & more flexible way to store the player’s progress data, please check out this doc for details about the usage: https://docs.microsoft.com/en-us/gaming/playfab/features/data/entities/entity-objects

10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.