Overall the documentation for PlayFab has been fantastic but I'm having a bit of trouble with the File Upload tut for the new-ish Entity system
Specifically, I think there might be an extra GlobalFileLock -= 1 in the OnInitFailed method at the end of the line that begins with PlayFabDataAPI.AbortFileUploads...
- It's commented as Finish AbortFileUploads but executes before we'd know whether that was the case.
- If we end up trying to abort an upload, then whether the Abort is successful *or* unsuccessful, it leaves GlobalFileLock at -1
Possibly another issue:
Within the OnInitFileUpload method -- if the SimplePutCall fails, it seems to leave the GlobalFileLock at 1.
Please let me know if I'm correct in thinking this or overlooking something.
And, being fairly new to reading/writing data in this way, I'd be very interested in some expansion on the included note in that article:
"Each file action requires many steps and multiple API calls, so don't try to access the same file in multiple ways at the same time. If you are very careful, you might not need a locking mechanism. If you want to do something complicated, your locking mechanism may be much more complex."
Thanks!
--Ross