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 Kosar · Apr 03, 2019 at 12:37 AM · Player Datadataunrealdocumentation

Uploading A File To Playfab

Hello everyone, I would like to know how I can upload a very light file onto a player's data. Essentially this will be a 1KB file that will store some game information(save game material). I saw something about this in the documentation but I couldn't really figure it out as I would like to achieve this in Unreal Engine 4 Blueprint.

https://api.playfab.com/documentation/Data/datatype/PlayFab.Data.Models/PlayFab.Data.Models.InitiateFileUploadsRequest



I would greatly appreciate any help.

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

1 Reply

· Add your reply
  • Sort: 
avatar image
Best Answer

Answer by SethDu · Apr 04, 2019 at 08:11 AM

I am not sure how familiar are you with Blueprint. after the login, to call InitiateFileUploads API, you will need at least 2 properties which is Entity and FileNames in the request. Entity is a JSON Object that Blueprint doesn't directly support, but it includes in PlayFab SDK.

I have made 2 samples for you.

  • The Entity can be retrieved from the result of Login onSuccess callback.

  • If you stored the entity key and type somewhere else, you need to manually craft a JSON Object:


snipaste-2019-04-04-15-39-53.png (262.9 kB)
snipaste-2019-04-04-15-42-36.png (257.2 kB)
Comment

People who like this

0 Show 3 · 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 Kosar · Apr 04, 2019 at 11:14 AM 0
Share

Thank you Seth, where would you actually declare what file to upload?

avatar image SethDu ♦ Kosar · Apr 05, 2019 at 02:42 AM 0
Share

the File Names in the API request is names of the files that will be stored in the player's account. A URL will be generated for uploading file in the OnSuccess callback.

Use that URL and select the files you want to upload. Basically it is a Blueprint question and in fact I am not expert in Blueprint. I believe you can find more information on Unreal Engine Documentation website.

avatar image Kosar · Apr 05, 2019 at 11:25 AM 0
Share

Will play around with it more to see how it works. Much appreciated Seth

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

    5 People are following this question.

    avatar image avatar image avatar image avatar image avatar image

    Related Questions

    GetUserData doesn't return values 1 Answer

    Custom data from the catalog item is not returned correctly. 1 Answer

    Size Limit to CustomData on CatalogItems? 1 Answer

    Getting Group Members With Their User Data 1 Answer

    Shared Secret Key Usage 2 Answers

    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