OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub
Ruby agile-developmentangularbcfboardsbug-trackerganttgantt-chartifcissue-trackerjira-alternativekanbanopenprojectproduct-managementproject-managementproject-planningroadmaprubyscrumtimelineworkflows
Exclude the check for 4096 bytes
Oliver Günther67e870c54fdc
diff --git a/frontend/src/app/shared/components/attachments/attachments.component.ts b/frontend/src/app/shared/components/attachments/attachments.component.tsindex e8fd94ab2b0..ec8166ff051 100644--- a/frontend/src/app/shared/components/attachments/attachments.component.ts+++ b/frontend/src/app/shared/components/attachments/attachments.component.ts@@ -276,8 +276,8 @@ export class OpAttachmentsComponent extends UntilDestroyedMixin implements OnIni}// Files however MAY have no mime type as well- // so fall back to checking zero or 4096 bytes- if (file.size === 0 || file.size === 4096) {+ // so fall back to checking zero+ if (file.size === 0) {console.warn(`Skipping file because of file size (${file.size}) %O`, file);return false;}