feat: Allow data imports larger than the standard attachment size (#4449)
* feat: Allow data imports larger than the standard attachment size * Use correct preset for data imports * Cleanup of expired attachments * lint
This commit is contained in:
12
server/presenters/attachment.ts
Normal file
12
server/presenters/attachment.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
import { Attachment } from "@server/models";
|
||||
|
||||
export default function present(attachment: Attachment) {
|
||||
return {
|
||||
documentId: attachment.documentId,
|
||||
contentType: attachment.contentType,
|
||||
name: attachment.name,
|
||||
id: attachment.id,
|
||||
url: attachment.url,
|
||||
size: attachment.size,
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user