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:
Tom Moor
2022-11-20 09:22:57 -08:00
committed by GitHub
parent 1f49bd167d
commit 6e36ffb706
18 changed files with 375 additions and 92 deletions

View 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,
};
}

View File

@@ -1,4 +1,5 @@
import presentApiKey from "./apiKey";
import presentAttachment from "./attachment";
import presentAuthenticationProvider from "./authenticationProvider";
import presentAvailableTeam from "./availableTeam";
import presentCollection from "./collection";
@@ -27,6 +28,7 @@ import presentWebhookSubscription from "./webhookSubscription";
export {
presentApiKey,
presentAttachment,
presentAuthenticationProvider,
presentAvailableTeam,
presentCollection,