Microsoft Azure PlayFab logo
    • Multiplayer
    • LiveOps
    • Data & Analytics
    • Add-ons
    • For Any Role

      • Engineer
      • Designer
      • Executive
      • Marketer
    • For Any Stage

      • Build
      • Improve
      • Grow
    • For Any Size

      • Solo
      • Indie
      • AAA
  • Runs on PlayFab
  • Pricing
    • Blog
    • Forums
    • Contact us
  • Sign up
  • Sign in
  • Ask a question
  • Spaces
    • PlayStream
    • Feature Requests
    • Add-on Marketplace
    • Bugs
    • API and SDK Questions
    • General Discussion
    • LiveOps
    • Topics
    • Questions
    • Articles
    • Ideas
    • Users
    • Badges
  • Home /
  • API and SDK Questions /
avatar image
Question by cbetty702 · Sep 25, 2020 at 01:45 AM · Player Dataunity3ddataentities

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! :)

Comment

People who like this

0 Show 0
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

2 Replies

· Add your reply
  • Sort: 
avatar image

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

Comment

People who like this

0 Show 0 · Share
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image

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

Comment

People who like this

0 Show 0 · Share
10 |1200 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Navigation

Spaces
  • General Discussion
  • API and SDK Questions
  • Feature Requests
  • PlayStream
  • Bugs
  • Add-on Marketplace
  • LiveOps
  • Follow this Question

    Answers Answers and Comments

    2 People are following this question.

    avatar image avatar image

    Related Questions

    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

    Entity Objects, Entity Files or Legacy player data 1 Answer

    PlayFab

    • Multiplayer
    • LiveOps
    • Data & Analytics
    • Runs on PlayFab
    • Pricing

    Solutions

    • For Any Role

      • Engineer
      • Designer
      • Executive
      • Marketer
    • For Any Stage

      • Build
      • Improve
      • Grow
    • For Any Size

      • Solo
      • Indie
      • AAA

    Engineers

    • Documentation
    • Quickstarts
    • API Reference
    • SDKs
    • Usage Limits

    Resources

    • Forums
    • Contact us
    • Blog
    • Service Health
    • Terms of Service
    • Attribution

    Follow us

    • Facebook
    • Twitter
    • LinkedIn
    • YouTube
    • Sitemap
    • Contact Microsoft
    • Privacy & cookies
    • Terms of use
    • Trademarks
    • Safety & eco
    • About our ads
    • © Microsoft 2020
    • Anonymous
    • Sign in
    • Create
    • Ask a question
    • Create an article
    • Post an idea
    • Spaces
    • PlayStream
    • Feature Requests
    • Add-on Marketplace
    • Bugs
    • API and SDK Questions
    • General Discussion
    • LiveOps
    • Explore
    • Topics
    • Questions
    • Articles
    • Ideas
    • Users
    • Badges