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! :)
Answer by scottadams · Sep 25, 2020 at 03:10 AM
Are you using objects? (I.e the new interface?) If so why not upload as an object?
Entity Objects Example
Answer by Citrus Yan · Sep 25, 2020 at 07:56 AM
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
Trouble uploading a text file as an entity file onto playfab. 1 Answer
How do I store arrays in player data? 2 Answers
Having trouble with getting invalid input parameters error when calling UpdateUserData. 1 Answer
Store a list of variable values for all players,Store a list of values that constantly changes 1 Answer