Request Processor and Concrete Adapters
ShowFormFunction handler, the core business logic is to validate that a requested upload has an extension and that the extension belongs to a list of approved file types. For valid extensions, the function needs to create a unique upload file name based on the request ID and the extension, and produce a signed upload policy and a signed download policy. This business core will have three ports (shown in the figure provided below):
- The first port should provide the request ID and the extension, starting the process, and format the resulting signatures accordingly.
- The second port should sign upload policies based on a key.
- The third port should sign download policies based on a key.