Skip to content

Commit

Permalink
WIP: Anonymous file upload
Browse files Browse the repository at this point in the history
  • Loading branch information
manuelkiessling committed Feb 24, 2022
1 parent dac5659 commit 81c0e01
Show file tree
Hide file tree
Showing 9 changed files with 598 additions and 21 deletions.
Expand Up @@ -6,10 +6,10 @@ import { createJsonResponse } from '../../../app/util/controllerUtils';
export const getPresignedUrlForAnonymousUploadAction = async (event: APIGatewayProxyEventBase<APIGatewayEventDefaultAuthorizerContext>): Promise<APIGatewayProxyResult> => {
const body = getBody(event);

const presignedUrl = getPresignedUrlForAnonymousUpload('test.png');
const presignedUrl = await getPresignedUrlForAnonymousUpload('test.png');

return createJsonResponse({
statusCode: 'InternalServerError',
statusCode: 'Created',
body: presignedUrl
});
}

0 comments on commit 81c0e01

Please sign in to comment.