To start uploading files from clients applications:
- Register the upload scope
- Query settings.
- Upload files.
- Extend xAPI.
- Implement security.
- Download files.
- Delete files.
Register Upload Scope¶
Update appsettings.json with file upload scope settings:
Use GraphQL to query file upload options for the desired scope from client application:
Use the provided API endpoint to upload files as multipart/form-data and obtain a safe file ID:
Extend your XAPI queries and mutations to include file attachments with the safe file ID as needed for your application:
Implement security callback to control access to files based on your application's requirements with impementation of IFileAuthorizationRequirementFactory
Use the provided API endpoint to download files using the safe file ID obtained during upload:
Use deleteFile mutation to remove file from storage: