Skip to content
Snippets Groups Projects
Commit bd40b4ff authored by Benedikt Heinrichs's avatar Benedikt Heinrichs
Browse files

For now only allow < 16 MB files

parent d6301aee
No related branches found
No related tags found
1 merge request!1New: Create a Metadata Extraction Cronjob
Pipeline #822310 skipped
......@@ -72,6 +72,11 @@ public class CoscineMetadataExtractor : IMetadataExtractor
foreach (var file in fileInfos.Where((fileInfo) => fileInfo.HasBody))
{
if (file.BodyBytes > 16 * 1000 * 1000)
{
Console.WriteLine($"Skipping {file.Key} on {resourceId} since it has a too large byte size");
continue;
}
Console.WriteLine($"Iterating over {file.Key} on {resourceId}");
CreateMetadataSetsIfDontExist(resourceId.ToString(), file, fileInfos);
if (!HasCurrentMetadataExtracted(resourceId.ToString(), file))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment