- how file uploads are handled by the deployed cloud infrastructure and application code
The diagram shows what happens every time a client tries to upload a binary file.
To provide file upload functionality, the File Manager application relies on a method called pre-signed POST payload. Once certain conditions are met, the method enables uploading files directly to an S3 bucket, which is significantly more efficient than having the file travel through multiple cloud infrastructure resources.
If you want to learn more, feel free to check out a blog post we wrote on this exact subject and which explains the process in detail.
The flow consists of the following three steps:
- The client issues a GraphQL HTTP request which instructs the GraphQL Handler
Cto generate the necessary pre-signed POST data.
- Once the client receives the pre-signed POST data, in a new POST HTTP request, the data, and the actual file are uploaded to the S3 bucket
- Finally, another GraphQL request is issued, which instructs the GraphQL Handler
Cto store the file meta data. The data is stored both in Amazon DynamoDB Fand Amazon ElasticSearch Service G.
Yes, by going into the File Manager’s general settings section, and manually entering the appropriate values.