I am trying to implement a process to upload an item image as a title entity file and then download it in the user application.
The admin could upload the image, but I don't know how the user can download it.
This is how the admin uploaded the file to the title entity.
- use GetEntityToken with SecretKey to get TitleEntityToken.
- InitiateFileUploads by the TitleEntityToken.
- finalizeFileUploads by the TitleEntityToken.
We have confirmed that the administrator can download the title entity's files with GetFiles.
However, it is not possible for regular users to download them.
There are two approaches:
- The user can use GetEntityToken to get the TitleEntityToken.
- GetFiles by using the "title_player_account EntityToken" given to the user upon login.
Both of these fail.
I also want to achieve this setting.
- The user is allowed to Get the title entity's files, but not to Put, Post, or Delete them.