1. Home
  2. Docs
  3. Save Game Pro
  4. Tutorials
  5. Uploading and Downloading Files

Uploading and Downloading Files

Save Game Pro provides API for uploading and download files, so it allows you to upload saved images, data files and other kind of files.

The SaveGameWeb class at BayatGames.SaveGamePro.Networking namespace is the main API class for handling with uploading and downloading of files using UploadFile and DownloadFile methods, so it means you can store files on your server storage instead of database and do other stuff with them, like displaying the content of the file to the user.

Here is a simple example for uploading and downloading files:

And you can use JSON serialization format to make the stored data human readable and handle with the data on your server scripts. Check out Changing Serialization Method article

Now, you can access the uploaded file at the specified uploads folder at installation of Save Game Pro, the default path is the <Save Game Pro install directory>/uploads and the saved file path will beĀ <Save Game Pro install directory>/uploads/test/helloWorld.txt

Was this article helpful to you? Yes 2 No 2

How can we help?