mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-06-01 23:58:58 -04:00
refactor(media): store filenames, use pre-signed s3/azure URLs, UUIDs
Signed-off-by: Erik Michelson <github@erik.michelson.eu>
This commit is contained in:
parent
4132833b5d
commit
157a0fe278
47 changed files with 869 additions and 389 deletions
|
@ -12,13 +12,15 @@ const handler = (req: NextApiRequest, res: NextApiResponse) => {
|
|||
{
|
||||
username: 'tilman',
|
||||
createdAt: '2022-03-20T20:36:32Z',
|
||||
id: 'dummy.png',
|
||||
uuid: '5355ed83-7e12-4db0-95ed-837e124db08c',
|
||||
fileName: 'dummy.png',
|
||||
noteId: 'features'
|
||||
},
|
||||
{
|
||||
username: 'tilman',
|
||||
createdAt: '2022-03-20T20:36:57+0000',
|
||||
id: 'dummy.png',
|
||||
uuid: '656745ab-fbf9-47f1-a745-abfbf9a7f10c',
|
||||
fileName: 'dummy2.png',
|
||||
noteId: null
|
||||
}
|
||||
])
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* SPDX-FileCopyrightText: 2022 The HedgeDoc developers (see AUTHORS file)
|
||||
* SPDX-FileCopyrightText: 2024 The HedgeDoc developers (see AUTHORS file)
|
||||
*
|
||||
* SPDX-License-Identifier: AGPL-3.0-only
|
||||
*/
|
||||
|
@ -20,7 +20,8 @@ const handler = async (req: NextApiRequest, res: NextApiResponse): Promise<void>
|
|||
req,
|
||||
res,
|
||||
{
|
||||
id: '/public/img/avatar.png',
|
||||
uuid: 'e81f57cd-5866-4253-9f57-cd5866a253ca',
|
||||
fileName: 'avatar.png',
|
||||
noteId: null,
|
||||
username: 'test',
|
||||
createdAt: '2022-02-27T21:54:23.856Z'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue