🐛 (S3 sync) Fixed cases on storage exception are thrown and preview generation turned off (#782)
This commit is contained in:
@@ -400,7 +400,7 @@ export class DocumentsService {
|
||||
company_id: driveItem.company_id,
|
||||
},
|
||||
context,
|
||||
{ waitForThumbnail: true },
|
||||
{ waitForThumbnail: false },
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -498,7 +498,7 @@ export const getFileMetadata = async (
|
||||
company_id: context.company.id,
|
||||
},
|
||||
context,
|
||||
{ ...(context.user?.server_request ? {} : { waitForThumbnail: true }) },
|
||||
{ ...(context.user?.server_request ? {} : { waitForThumbnail: false }) },
|
||||
);
|
||||
|
||||
if (!file) {
|
||||
|
||||
@@ -63,8 +63,8 @@ export class DocumentsController {
|
||||
chunkNumber: parseInt(q.resumableChunkNumber || q.chunk_number) || 1,
|
||||
filename: q.resumableFilename || q.filename || file?.filename || undefined,
|
||||
type: q.resumableType || q.type || file?.mimetype || undefined,
|
||||
waitForThumbnail: !!q.thumbnail_sync,
|
||||
ignoreThumbnails: false,
|
||||
waitForThumbnail: false,
|
||||
ignoreThumbnails: true,
|
||||
};
|
||||
|
||||
createdFile = await globalResolver.services.files.save(null, file, options, context);
|
||||
|
||||
@@ -29,8 +29,8 @@ export class FileController {
|
||||
chunkNumber: parseInt(q.resumableChunkNumber || q.chunk_number) || 1,
|
||||
filename: q.resumableFilename || q.filename || file?.filename || undefined,
|
||||
type: q.resumableType || q.type || file?.mimetype || undefined,
|
||||
waitForThumbnail: q.thumbnail_sync,
|
||||
ignoreThumbnails: q.ignore_thumbnails,
|
||||
waitForThumbnail: false,
|
||||
ignoreThumbnails: true,
|
||||
};
|
||||
|
||||
const id = request.params.id;
|
||||
|
||||
Reference in New Issue
Block a user