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,
|
||||
};
|
||||
}
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user